mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
13 lines
228 B
Go
13 lines
228 B
Go
package testutil
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
)
|
|
|
|
func Context(t *testing.T) (context.Context, context.CancelFunc) {
|
|
ctx, cancel := context.WithTimeout(context.Background(), WaitLong)
|
|
t.Cleanup(cancel)
|
|
return ctx, cancel
|
|
}
|