You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/powershell/private/core/Test-ZtContext.ps1
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,7 @@ function Test-ZtContext {
42
42
$message+=" Add the missing 'Application' permissions in the Microsoft Entra portal and grant consent. You will also need to Disconnect-Graph to refresh the permissions."
43
43
$message+=" Click here to open the 'API Permissions' blade for this app: $urlTemplate"
Write-PSFMessage-Level Warning -Message "PipelineStoppedException in test '{0}' was not caused by timeout"-StringValues $Test.TestID-Target $Test-ErrorRecord $_
177
178
throw
178
179
}
179
180
}
@@ -184,10 +185,18 @@
184
185
}
185
186
}
186
187
catch {
187
-
Write-PSFMessage-Level Warning -Message "Error executing test '{0}'"-StringValues $Test.TestID-Target $Test-ErrorRecord $_
# Separate Sync Tests (Compliance/ExchangeOnline/SharePointOnline) from Parallel Tests (because of DLL order to manage in runspaces & remoting into WPS)
Add-ZtTestResultDetail-TestId $Test.TestID-Status $false-Result "The test did not complete within the configured timeout of $($Timeout.ToString('hh\:mm\:ss')). Partial results, if any, were discarded."
24
+
Add-ZtTestResultDetail-TestId $Test.TestID-Status $false-CustomStatus 'Error'-Result "The test did not complete within the configured timeout of $($Timeout.ToString('hh\:mm\:ss')). Partial results, if any, were discarded."
25
25
}
26
26
catch {
27
27
Write-PSFMessage-Level Warning -Message "Failed to overwrite timed-out test result detail for test '{0}': {1}"-StringValues $Test.TestID,$_-Target $Test-Tag timeout
0 commit comments