mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
registry: fix env test cleanup
This commit is contained in:
parent
4f55721c2e
commit
bb968634ac
@ -30,11 +30,10 @@ func TestConfigureDiscoveryRetry(t *testing.T) {
|
||||
})
|
||||
|
||||
t.Run("configured retry", func(t *testing.T) {
|
||||
defer func() {
|
||||
os.Setenv(registryDiscoveryRetryEnvName,
|
||||
os.Getenv(registryDiscoveryRetryEnvName))
|
||||
defer func(retryEnv string) {
|
||||
os.Setenv(registryDiscoveryRetryEnvName, retryEnv)
|
||||
discoveryRetry = defaultRetry
|
||||
}()
|
||||
}(os.Getenv(registryDiscoveryRetryEnvName))
|
||||
os.Setenv(registryDiscoveryRetryEnvName, "2")
|
||||
|
||||
configureDiscoveryRetry()
|
||||
|
Loading…
Reference in New Issue
Block a user