feat: convert entire CLI to clibase (#6491)

I'm sorry.
This commit is contained in:
Ammar Bandukwala
2023-03-23 17:42:20 -05:00
committed by GitHub
parent b71b8daa21
commit 2bd6d2908e
345 changed files with 9965 additions and 9082 deletions
+4 -3
View File
@@ -3,10 +3,11 @@ package testutil
import (
"context"
"testing"
"time"
)
func Context(t *testing.T) (context.Context, context.CancelFunc) {
ctx, cancel := context.WithTimeout(context.Background(), WaitLong)
func Context(t *testing.T, dur time.Duration) context.Context {
ctx, cancel := context.WithTimeout(context.Background(), dur)
t.Cleanup(cancel)
return ctx, cancel
return ctx
}