git/githistory/log: test WaitingTask Throttle()-d

This commit is contained in:
Taylor Blau 2017-06-19 16:29:36 -04:00
parent dfeb2425de
commit babb756098

@ -51,3 +51,12 @@ func TestWaitingTaskPanicsWithMultipleDoneCalls(t *testing.T) {
task.Complete()
}
func TestWaitingTaskIsThrottled(t *testing.T) {
task := NewWaitingTask("example")
throttled := task.Throttled()
assert.True(t, throttled,
"git/githistory/log: expected *WaitingTask to be Throttle()-d")
}