MCPcopy Create free account
hub / github.com/CPChain/chain / TestQueueGetTimeout

Function TestQueueGetTimeout

protocols/cpc/syncer/queue_test.go:46–52  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

44}
45
46func TestQueueGetTimeout(t *testing.T) {
47 q := newQueue(100)
48 _, err := q.get()
49 if err != ErrTimeout {
50 t.Error("err must be ErrTimeout")
51 }
52}

Callers

nothing calls this directly

Calls 3

newQueueFunction · 0.85
ErrorMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected