@@ -406,7 +406,7 @@ func TestServer(t *testing.T) {
406
406
"--tls-key-file" , keyPath ,
407
407
"--cache-dir" , t .TempDir (),
408
408
)
409
- clitest .Start (ctx , t , root )
409
+ clitest .Start (t , root . WithContext ( ctx ) )
410
410
411
411
// Verify HTTPS
412
412
accessURL := waitAccessURL (t , cfg )
@@ -446,7 +446,7 @@ func TestServer(t *testing.T) {
446
446
)
447
447
pty := ptytest .New (t )
448
448
root .Stdout = pty .Output ()
449
- clitest .Start (ctx , t , root )
449
+ clitest .Start (t , root . WithContext ( ctx ) )
450
450
451
451
accessURL := waitAccessURL (t , cfg )
452
452
require .Equal (t , "https" , accessURL .Scheme )
@@ -864,7 +864,7 @@ func TestServer(t *testing.T) {
864
864
pty := ptytest .New (t )
865
865
root .Stdout = pty .Output ()
866
866
root .Stderr = pty .Output ()
867
- clitest .Start (ctx , t , root )
867
+ clitest .Start (t , root . WithContext ( ctx ) )
868
868
869
869
pty .ExpectMatch ("is deprecated" )
870
870
@@ -894,7 +894,7 @@ func TestServer(t *testing.T) {
894
894
pty := ptytest .New (t )
895
895
root .Stdout = pty .Output ()
896
896
root .Stderr = pty .Output ()
897
- clitest .Start (ctx , t , root )
897
+ clitest .Start (t , root . WithContext ( ctx ) )
898
898
899
899
pty .ExpectMatch ("is deprecated" )
900
900
@@ -1230,7 +1230,7 @@ func TestServer(t *testing.T) {
1230
1230
"--access-url" , "http://example.com" ,
1231
1231
"--log-human" , fiName ,
1232
1232
)
1233
- clitest .Start (context . Background (), t , root )
1233
+ clitest .Start (t , root )
1234
1234
1235
1235
waitFile (t , fiName , testutil .WaitShort )
1236
1236
})
@@ -1247,7 +1247,7 @@ func TestServer(t *testing.T) {
1247
1247
"--access-url" , "http://example.com" ,
1248
1248
"--log-human" , fi ,
1249
1249
)
1250
- clitest .Start (context . Background (), t , root )
1250
+ clitest .Start (t , root )
1251
1251
1252
1252
waitFile (t , fi , testutil .WaitShort )
1253
1253
})
@@ -1264,7 +1264,7 @@ func TestServer(t *testing.T) {
1264
1264
"--access-url" , "http://example.com" ,
1265
1265
"--log-json" , fi ,
1266
1266
)
1267
- clitest .Start (context . Background (), t , root )
1267
+ clitest .Start (t , root )
1268
1268
1269
1269
waitFile (t , fi , testutil .WaitShort )
1270
1270
})
@@ -1319,7 +1319,7 @@ func TestServer(t *testing.T) {
1319
1319
// which can take a long time and end up failing the test.
1320
1320
// This is why we wait extra long below for server to listen on
1321
1321
// HTTP.
1322
- root , _ := clitest .New (t ,
1322
+ inv , _ := clitest .New (t ,
1323
1323
"server" ,
1324
1324
"--verbose" ,
1325
1325
"--in-memory" ,
@@ -1332,10 +1332,10 @@ func TestServer(t *testing.T) {
1332
1332
// Attach pty so we get debug output from the command if this test
1333
1333
// fails.
1334
1334
pty := ptytest .New (t )
1335
- root .Stdout = pty .Output ()
1336
- root .Stderr = pty .Output ()
1335
+ inv .Stdout = pty .Output ()
1336
+ inv .Stderr = pty .Output ()
1337
1337
1338
- clitest .Start (ctx , t , root )
1338
+ clitest .Start (t , inv )
1339
1339
1340
1340
// Wait for server to listen on HTTP, this is a good
1341
1341
// starting point for expecting logs.
0 commit comments