Skip to content

Commit

Permalink
fix tests, but like actually this time
Browse files Browse the repository at this point in the history
  • Loading branch information
onsi committed Oct 29, 2024
1 parent eeca931 commit 5deaf23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/duration_bundle_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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() {
Expand Down

0 comments on commit 5deaf23

Please sign in to comment.