MCPcopy Create free account
hub / github.com/DNAProject/DNA / TestCancelTimer

Function TestCancelTimer

consensus/vbft/event_timer_test.go:36–40  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

34}
35
36func TestCancelTimer(t *testing.T) {
37 eventtimer := constructEventTimer()
38 eventtimer.StartTimer(1, 10)
39 eventtimer.CancelTimer(1)
40}
41func TestStartEventTimer(t *testing.T) {
42 eventtimer := constructEventTimer()
43 err := eventtimer.startEventTimer(EventProposeBlockTimeout, 1)

Callers

nothing calls this directly

Calls 3

constructEventTimerFunction · 0.85
StartTimerMethod · 0.80
CancelTimerMethod · 0.80

Tested by

no test coverage detected