MCPcopy Create free account
hub / github.com/dc0d/workerpool / TestTimeout

Function TestTimeout

workerpool_usage_test.go:85–94  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

83}
84
85func TestTimeout(t *testing.T) {
86 initialWorkers := 1
87 extraWorkers := 10
88
89 pool := workerpool.New(initialWorkers, 2)
90
91 pool.Expand(extraWorkers, time.Millisecond*10, nil)
92
93 assert.NoError(t, waitFunc(pool.Stop, _timeout))
94}
95
96func TestQuit(t *testing.T) {
97 initialWorkers := 1

Callers

nothing calls this directly

Calls 2

waitFuncFunction · 0.85
ExpandMethod · 0.80

Tested by

no test coverage detected