Skip to content

Improve E2E test Stability #1796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions e2eTests/e2eTestHelper.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,9 @@ function RefreshToken {
throw "Token not set."
}

# Check if the last token refresh was more than 30 minutes ago
if ((-not $force) -and ($script:lastTokenRefresh -ne 0) -and (([DateTime]::Now - $script:lastTokenRefresh).TotalMinutes -lt 30)) {
# Check if the last token refresh was more than 10 minutes ago

if ((-not $force) -and ($script:lastTokenRefresh -ne 0) -and (([DateTime]::Now - $script:lastTokenRefresh).TotalMinutes -lt 10)) {
return
}

Expand Down
2 changes: 1 addition & 1 deletion e2eTests/scenarios/FederatedCredentials/runtest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ $noOfApps = 0
Get-Item "signedApps/Main App-main-Apps-$($newVersion.Major).$($newVersion.Minor).$($newVersion.Build).*/*.app" | ForEach-Object {
$appFile = $_.FullName
Write-Host "Check that $appFile was signed"
[System.Text.Encoding]::Ascii.GetString([System.IO.File]::ReadAllBytes($appFile)).indexof('DigiCert Trusted G4 RSA4096 SHA256 TimeStamping CA') | Should -BeGreaterThan -1
[System.Text.Encoding]::Ascii.GetString([System.IO.File]::ReadAllBytes($appFile)).indexof('DigiCert Trusted G4 TimeStamping RSA4096 SHA') | Should -BeGreaterThan -1
$noOfApps++
}
# Check that two apps were signed
Expand Down
Loading