Skip to content

Commit 5ebd9bb

Browse files
authored
Update headers after refreshing token during E2E tests (#1798)
### ❔What, Why & How <!-- Include description of the changes that will help reviewers in their task --> Update headers after refreshing token during E2E tests
1 parent ab2f531 commit 5ebd9bb

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

e2eTests/e2eTestHelper.psm1

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,14 +279,11 @@ function WaitWorkflow {
279279
if (!$repository) {
280280
$repository = $defaultRepository
281281
}
282-
$count = 0
283282
$status = ""
284283
do {
285284
RefreshToken -repository $repository
286-
if ($count % 45 -eq 0) {
287-
$headers = GetHeaders -token $ENV:GH_TOKEN -repository $repository
288-
$count++
289-
}
285+
$headers = GetHeaders -token $ENV:GH_TOKEN -repository $repository
286+
290287
if ($delay) {
291288
Start-Sleep -Seconds 60
292289
}

0 commit comments

Comments
 (0)