Skip to content

Commit ab2f531

Browse files
aholstrup1mazhelez
andauthored
Refresh E2E access token more aggressively (#1796)
### ❔What, Why & How <!-- Include description of the changes that will help reviewers in their task --> Refresh E2E access token more aggressively --------- Co-authored-by: Maria Zhelezova <[email protected]>
1 parent 8c51fa4 commit ab2f531

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

e2eTests/e2eTestHelper.psm1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@ function RefreshToken {
6767
throw "Token not set."
6868
}
6969

70-
# Check if the last token refresh was more than 30 minutes ago
71-
if ((-not $force) -and ($script:lastTokenRefresh -ne 0) -and (([DateTime]::Now - $script:lastTokenRefresh).TotalMinutes -lt 30)) {
70+
# Check if the last token refresh was more than 10 minutes ago
71+
72+
if ((-not $force) -and ($script:lastTokenRefresh -ne 0) -and (([DateTime]::Now - $script:lastTokenRefresh).TotalMinutes -lt 10)) {
7273
return
7374
}
7475

e2eTests/scenarios/FederatedCredentials/runtest.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ $noOfApps = 0
137137
Get-Item "signedApps/Main App-main-Apps-$($newVersion.Major).$($newVersion.Minor).$($newVersion.Build).*/*.app" | ForEach-Object {
138138
$appFile = $_.FullName
139139
Write-Host "Check that $appFile was signed"
140-
[System.Text.Encoding]::Ascii.GetString([System.IO.File]::ReadAllBytes($appFile)).indexof('DigiCert Trusted G4 RSA4096 SHA256 TimeStamping CA') | Should -BeGreaterThan -1
140+
[System.Text.Encoding]::Ascii.GetString([System.IO.File]::ReadAllBytes($appFile)).indexof('DigiCert Trusted G4 TimeStamping RSA4096 SHA') | Should -BeGreaterThan -1
141141
$noOfApps++
142142
}
143143
# Check that two apps were signed

0 commit comments

Comments
 (0)