Skip to content

Commit

Permalink
fix typo in core_dsl.go
Browse files Browse the repository at this point in the history
  • Loading branch information
ushitora-anqou authored and onsi committed Mar 11, 2024
1 parent e297e7b commit 977bc6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core_dsl.go
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,8 @@ DeferCleanup can be passed:
For example:
BeforeEach(func() {
DeferCleanup(os.SetEnv, "FOO", os.GetEnv("FOO"))
os.SetEnv("FOO", "BAR")
DeferCleanup(os.Setenv, "FOO", os.GetEnv("FOO"))
os.Setenv("FOO", "BAR")
})
will register a cleanup handler that will set the environment variable "FOO" to its current value (obtained by os.GetEnv("FOO")) after the spec runs and then sets the environment variable "FOO" to "BAR" for the current spec.
Expand Down

0 comments on commit 977bc6f

Please sign in to comment.