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

Function Sleep

zaptest/timeout.go:43–45  ·  view source on GitHub ↗

Sleep scales the sleep duration by $TEST_TIMEOUT_SCALE. Deprecated: This function is intended for internal testing and shouldn't be used outside zap itself. It was introduced before Go supported internal packages.

(base time.Duration)

Source from the content-addressed store, hash-verified

41// used outside zap itself. It was introduced before Go supported internal
42// packages.
43func Sleep(base time.Duration) {
44 ztest.Sleep(base)
45}

Callers 1

TestSleepFunction · 0.70

Calls 1

SleepFunction · 0.92

Tested by 1

TestSleepFunction · 0.56