From 5deaf2330c9e7dc4d78155bc92c04b5adc4bcc5e Mon Sep 17 00:00:00 2001 From: Onsi Fakhouri Date: Tue, 29 Oct 2024 14:16:59 -0600 Subject: [PATCH] fix tests, but like actually this time --- internal/duration_bundle_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/duration_bundle_test.go b/internal/duration_bundle_test.go index 69fc94c1..9f766c6f 100644 --- a/internal/duration_bundle_test.go +++ b/internal/duration_bundle_test.go @@ -16,7 +16,7 @@ var _ = Describe("DurationBundle and Duration Support", func() { var originalValues map[string]string BeforeEach(func() { - envVars = []string{internal.EventuallyTimeoutEnvVarName, internal.EventuallyPollingIntervalEnvVarName, internal.ConsistentlyDurationEnvVarName, internal.ConsistentlyPollingIntervalEnvVarName, internal.EnforceDefaultTimeoutsWhenUsingContextsEnvVarName} + envVars = []string{internal.EventuallyTimeoutEnvVarName, internal.EventuallyPollingIntervalEnvVarName, internal.ConsistentlyDurationEnvVarName, internal.ConsistentlyPollingIntervalEnvVarName} originalValues = map[string]string{} for _, envVar := range envVars { @@ -28,6 +28,7 @@ var _ = Describe("DurationBundle and Duration Support", func() { for _, envVar := range envVars { Ω(os.Setenv(envVar, originalValues[envVar])).Should(Succeed()) } + os.Unsetenv(internal.EnforceDefaultTimeoutsWhenUsingContextsEnvVarName) }) Context("with no environment set", func() {