MCPcopy
hub / github.com/uber-go/zap / TestTimeout

Function TestTimeout

zaptest/timeout_test.go:31–34  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

29)
30
31func TestTimeout(t *testing.T) {
32 defer ztest.Initialize("2")()
33 assert.Equal(t, time.Duration(100), Timeout(50), "Expected to scale up timeout.")
34}
35
36func TestSleep(t *testing.T) {
37 defer ztest.Initialize("2")()

Callers

nothing calls this directly

Calls 2

InitializeFunction · 0.92
TimeoutFunction · 0.70

Tested by

no test coverage detected