Skip to content

Commit

Permalink
Improve output of lock wait
Browse files Browse the repository at this point in the history
  • Loading branch information
drich10 committed Mar 16, 2018
1 parent 7c2e949 commit cc78657
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
1 change: 1 addition & 0 deletions bosh/director.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func (d BoshDirector) WaitForDeployLock() error {
}
}
}
fmt.Fprintln(d.writer, " Done")
return nil
}

Expand Down
5 changes: 1 addition & 4 deletions bosh/director_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,9 +485,6 @@ var _ = Describe("BoshDirector", func() {
err := director.WaitForDeployLock()
Expect(err).ToNot(HaveOccurred())
Expect(fakeBoshDirector.LocksCallCount()).To(Equal(1))

//logs output so the user knows what is happening
Expect(loggerOutput.String()).To(ContainSubstring("Waiting for deployment lock"))
})

Context("when there are locks", func() {
Expand Down Expand Up @@ -515,7 +512,7 @@ var _ = Describe("BoshDirector", func() {
Expect(fakeBoshDirector.LocksCallCount()).To(Equal(2))

//logs output so the user knows what is happening
Expect(loggerOutput.String()).To(ContainSubstring("Waiting for deployment lock."))
Expect(loggerOutput.String()).To(ContainSubstring("Waiting for deployment lock. Done\n"))
})
})

Expand Down

0 comments on commit cc78657

Please sign in to comment.