Skip to content

Commit

Permalink
chore: undo rename of environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
blgm committed Oct 9, 2024
1 parent 03505fe commit b73c14d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions integrationtest/termination_recovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ var _ = Describe("Recovery From Broker Termination", func() {
By("ensuring that the expected lockdir exists")

dirDefault, _ = os.MkdirTemp("/tmp/", "lockfiles")
broker = must(testdrive.StartBroker(csb, brokerpak, database, testdrive.WithOutputs(stdout, stderr), testdrive.WithEnv(fmt.Sprintf("CSB_LOCKFILEDIR=%s", dirDefault))))
broker = must(testdrive.StartBroker(csb, brokerpak, database, testdrive.WithOutputs(stdout, stderr), testdrive.WithEnv(fmt.Sprintf("CSB_LOCKFILE_DIR=%s", dirDefault))))
})

It("fails service instances that have a lockfile on start", func() {
Expand All @@ -109,7 +109,7 @@ var _ = Describe("Recovery From Broker Termination", func() {
Expect(broker.Terminate()).To(Succeed())
}()

broker = must(testdrive.StartBroker(csb, brokerpak, database, testdrive.WithOutputs(stdout, stderr), testdrive.WithEnv(fmt.Sprintf("CSB_LOCKFILEDIR=%s", dirDefault))))
broker = must(testdrive.StartBroker(csb, brokerpak, database, testdrive.WithOutputs(stdout, stderr), testdrive.WithEnv(fmt.Sprintf("CSB_LOCKFILE_DIR=%s", dirDefault))))
lastOperation, err := broker.LastOperation(instanceGUID)
Expect(err).NotTo(HaveOccurred())
Expect(lastOperation.Description).To(Equal("the broker restarted while the operation was in progress"))
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
const lockfileDir = "lockfiledir"

func init() {
viper.BindEnv(lockfileDir, "CSB_LOCKFILEDIR")
viper.BindEnv(lockfileDir, "CSB_LOCKFILE_DIR")
}

type Storage struct {
Expand Down

0 comments on commit b73c14d

Please sign in to comment.