Skip to content

Commit fb4a781

Browse files
author
felipe-colussi
committed
comment prints on testAcc
1 parent 1f4600a commit fb4a781

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

rancher2/0_provider_upgrade_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,9 @@ func testAccRancher2UpgradeVars() resource.TestCheckFunc {
432432
continue
433433
}
434434
token := rs.Primary.Attributes["token"]
435+
// This get-envs and this getEnvs and prints were added to debugg a flaky test that was happening resulting on
436+
// dangling resources. After they were added the flaky test didn't happen anymore. I believe that the syscall
437+
// is fixing a race condition that was generating the flaky test
435438
rancherTokenKey := os.Getenv("RANCHER_TOKEN_KEY")
436439
rancherAdminPass := os.Getenv("RANCHER_ADMIN_PASS")
437440
if err := os.Setenv("RANCHER_TOKEN_KEY", token); err != nil {

0 commit comments

Comments
 (0)