mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
feat: add template RBAC/groups (#4235)
This commit is contained in:
12
testutil/ctx.go
Normal file
12
testutil/ctx.go
Normal file
@ -0,0 +1,12 @@
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user