@@ -58,7 +58,7 @@ func TestTaskUpdate(t *testing.T) {
5858 defer client .Close ()
5959
6060 var (
61- ctx , cancel = testContext ()
61+ ctx , cancel = testContext (t )
6262 id = t .Name ()
6363 )
6464 defer cancel ()
@@ -135,7 +135,7 @@ func TestShimInCgroup(t *testing.T) {
135135 }
136136 defer client .Close ()
137137 var (
138- ctx , cancel = testContext ()
138+ ctx , cancel = testContext (t )
139139 id = t .Name ()
140140 )
141141 defer cancel ()
@@ -192,7 +192,7 @@ func TestDaemonRestart(t *testing.T) {
192192
193193 var (
194194 image Image
195- ctx , cancel = testContext ()
195+ ctx , cancel = testContext (t )
196196 id = t .Name ()
197197 )
198198 defer cancel ()
@@ -268,7 +268,7 @@ func TestShimDoesNotLeakPipes(t *testing.T) {
268268
269269 var (
270270 image Image
271- ctx , cancel = testContext ()
271+ ctx , cancel = testContext (t )
272272 id = t .Name ()
273273 )
274274 defer cancel ()
@@ -341,7 +341,7 @@ func TestDaemonReconnectsToShimIOPipesOnRestart(t *testing.T) {
341341
342342 var (
343343 image Image
344- ctx , cancel = testContext ()
344+ ctx , cancel = testContext (t )
345345 id = t .Name ()
346346 )
347347 defer cancel ()
@@ -471,7 +471,7 @@ func TestContainerPTY(t *testing.T) {
471471
472472 var (
473473 image Image
474- ctx , cancel = testContext ()
474+ ctx , cancel = testContext (t )
475475 id = t .Name ()
476476 )
477477 defer cancel ()
@@ -548,7 +548,7 @@ func TestContainerAttach(t *testing.T) {
548548
549549 var (
550550 image Image
551- ctx , cancel = testContext ()
551+ ctx , cancel = testContext (t )
552552 id = t .Name ()
553553 )
554554 defer cancel ()
@@ -693,7 +693,7 @@ func TestContainerUsername(t *testing.T) {
693693
694694 var (
695695 image Image
696- ctx , cancel = testContext ()
696+ ctx , cancel = testContext (t )
697697 id = t .Name ()
698698 )
699699 defer cancel ()
@@ -768,7 +768,7 @@ func testContainerUser(t *testing.T, userstr, expectedOutput string) {
768768
769769 var (
770770 image Image
771- ctx , cancel = testContext ()
771+ ctx , cancel = testContext (t )
772772 id = strings .Replace (t .Name (), "/" , "_" , - 1 )
773773 )
774774 defer cancel ()
@@ -843,7 +843,7 @@ func TestContainerAttachProcess(t *testing.T) {
843843
844844 var (
845845 image Image
846- ctx , cancel = testContext ()
846+ ctx , cancel = testContext (t )
847847 id = t .Name ()
848848 )
849849 defer cancel ()
@@ -960,7 +960,7 @@ func TestContainerUserID(t *testing.T) {
960960
961961 var (
962962 image Image
963- ctx , cancel = testContext ()
963+ ctx , cancel = testContext (t )
964964 id = t .Name ()
965965 )
966966 defer cancel ()
@@ -1029,7 +1029,7 @@ func TestContainerKillAll(t *testing.T) {
10291029
10301030 var (
10311031 image Image
1032- ctx , cancel = testContext ()
1032+ ctx , cancel = testContext (t )
10331033 id = t .Name ()
10341034 )
10351035 defer cancel ()
@@ -1086,7 +1086,7 @@ func TestDaemonRestartWithRunningShim(t *testing.T) {
10861086
10871087 var (
10881088 image Image
1089- ctx , cancel = testContext ()
1089+ ctx , cancel = testContext (t )
10901090 id = t .Name ()
10911091 )
10921092 defer cancel ()
@@ -1167,7 +1167,7 @@ func TestContainerRuntimeOptionsv1(t *testing.T) {
11671167
11681168 var (
11691169 image Image
1170- ctx , cancel = testContext ()
1170+ ctx , cancel = testContext (t )
11711171 id = t .Name ()
11721172 )
11731173 defer cancel ()
@@ -1210,7 +1210,7 @@ func TestContainerRuntimeOptionsv2(t *testing.T) {
12101210
12111211 var (
12121212 image Image
1213- ctx , cancel = testContext ()
1213+ ctx , cancel = testContext (t )
12141214 id = t .Name ()
12151215 )
12161216 defer cancel ()
@@ -1251,7 +1251,7 @@ func initContainerAndCheckChildrenDieOnKill(t *testing.T, opts ...oci.SpecOpts)
12511251
12521252 var (
12531253 image Image
1254- ctx , cancel = testContext ()
1254+ ctx , cancel = testContext (t )
12551255 id = t .Name ()
12561256 )
12571257 defer cancel ()
@@ -1350,7 +1350,7 @@ func testUserNamespaces(t *testing.T, readonlyRootFS bool) {
13501350
13511351 var (
13521352 image Image
1353- ctx , cancel = testContext ()
1353+ ctx , cancel = testContext (t )
13541354 id = strings .Replace (t .Name (), "/" , "-" , - 1 )
13551355 )
13561356 defer cancel ()
@@ -1439,7 +1439,7 @@ func TestTaskResize(t *testing.T) {
14391439
14401440 var (
14411441 image Image
1442- ctx , cancel = testContext ()
1442+ ctx , cancel = testContext (t )
14431443 id = t .Name ()
14441444 )
14451445 defer cancel ()
@@ -1474,7 +1474,7 @@ func TestTaskResize(t *testing.T) {
14741474func TestContainerImage (t * testing.T ) {
14751475 t .Parallel ()
14761476
1477- ctx , cancel := testContext ()
1477+ ctx , cancel := testContext (t )
14781478 defer cancel ()
14791479 id := t .Name ()
14801480
@@ -1507,7 +1507,7 @@ func TestContainerImage(t *testing.T) {
15071507func TestContainerNoImage (t * testing.T ) {
15081508 t .Parallel ()
15091509
1510- ctx , cancel := testContext ()
1510+ ctx , cancel := testContext (t )
15111511 defer cancel ()
15121512 id := t .Name ()
15131513
@@ -1535,7 +1535,7 @@ func TestContainerNoImage(t *testing.T) {
15351535func TestUIDNoGID (t * testing.T ) {
15361536 t .Parallel ()
15371537
1538- ctx , cancel := testContext ()
1538+ ctx , cancel := testContext (t )
15391539 defer cancel ()
15401540 id := t .Name ()
15411541
@@ -1578,7 +1578,7 @@ func TestBindLowPortNonRoot(t *testing.T) {
15781578
15791579 var (
15801580 image Image
1581- ctx , cancel = testContext ()
1581+ ctx , cancel = testContext (t )
15821582 id = t .Name ()
15831583 )
15841584 defer cancel ()
@@ -1634,7 +1634,7 @@ func TestBindLowPortNonOpt(t *testing.T) {
16341634
16351635 var (
16361636 image Image
1637- ctx , cancel = testContext ()
1637+ ctx , cancel = testContext (t )
16381638 id = t .Name ()
16391639 )
16401640 defer cancel ()
@@ -1695,7 +1695,7 @@ func TestContainerNoSTDIN(t *testing.T) {
16951695
16961696 var (
16971697 image Image
1698- ctx , cancel = testContext ()
1698+ ctx , cancel = testContext (t )
16991699 id = t .Name ()
17001700 )
17011701 defer cancel ()
@@ -1748,7 +1748,7 @@ func TestShimOOMScore(t *testing.T) {
17481748
17491749 var (
17501750 image Image
1751- ctx , cancel = testContext ()
1751+ ctx , cancel = testContext (t )
17521752 id = t .Name ()
17531753 )
17541754 defer cancel ()
0 commit comments