Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
fix position of done call in Log test (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
fearful-symmetry authored Feb 27, 2023
1 parent cdf8aa3 commit fff35d3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions controller/controller_client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,6 @@ func TestUnitLogChange(t *testing.T) {
t.FailNow()
}
if gotStopped {
doneWaiter.Done()
return nil
}
// initial checkin
Expand Down Expand Up @@ -540,7 +539,7 @@ func TestUnitLogChange(t *testing.T) {
}
} else if unitsAreState(t, proto.State_HEALTHY, observed.Units) && gotHealthy {
// shut down
t.Logf("Got unit state healthy, stoppinng")
t.Logf("Got unit state healthy, stopping")
//check to see if log level has changed
observedLogLevel = logp.GetLevel()
unitOut.ConfigStateIdx++
Expand All @@ -552,7 +551,7 @@ func TestUnitLogChange(t *testing.T) {
}
} else if unitsAreState(t, proto.State_STOPPED, observed.Units) {
gotStopped = true
//doneWaiter.Done()
doneWaiter.Done()
t.Logf("Got unit state STOPPED, removing")
return &proto.CheckinExpected{
Units: []*proto.UnitExpected{},
Expand Down

0 comments on commit fff35d3

Please sign in to comment.