Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
try to fix the test failure in travis
Browse files Browse the repository at this point in the history
  • Loading branch information
candysmurf committed Feb 18, 2016
1 parent 45df644 commit 24edb3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion control/control_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1145,11 +1145,12 @@ func TestFailedPlugin(t *testing.T) {
<-lpe.done
eventMap[lpe.plugin.EventNamespace]++
So(pool.RestartCount(), ShouldEqual, i+1)
} else {
So(eventMap[control_event.AvailablePluginDead], ShouldEqual, MaxPluginRestartCount+1)
}
}
<-lpe.done
eventMap[lpe.plugin.EventNamespace]++
So(eventMap[control_event.AvailablePluginDead], ShouldEqual, MaxPluginRestartCount+1)
So(eventMap[control_event.AvailablePluginRestarted], ShouldEqual, MaxPluginRestartCount)
So(eventMap[control_event.PluginRestartsExceeded], ShouldEqual, 1)
So(len(pool.Plugins()), ShouldEqual, 0)
Expand Down

0 comments on commit 24edb3a

Please sign in to comment.