Browse code

integration: increase timeout

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>

Akihiro Suda authored on 2025/12/01 20:33:00
Showing 3 changed files
... ...
@@ -768,7 +768,7 @@ func TestCreateWithCustomMACs(t *testing.T) {
768 768
 
769 769
 	net.CreateNoError(ctx, t, apiClient, "testnet")
770 770
 
771
-	attachCtx, cancel := context.WithTimeout(ctx, 1*time.Second)
771
+	attachCtx, cancel := context.WithTimeout(ctx, 5*time.Second)
772 772
 	defer cancel()
773 773
 	res := testContainer.RunAttach(attachCtx, t, apiClient,
774 774
 		testContainer.WithCmd("ip", "-o", "link", "show"),
... ...
@@ -40,7 +40,7 @@ func TestCreateWithMultiNetworks(t *testing.T) {
40 40
 	network.CreateNoError(ctx, t, apiClient, "testnet2")
41 41
 	defer network.RemoveNoError(ctx, t, apiClient, "testnet2")
42 42
 
43
-	attachCtx, cancel := context.WithTimeout(ctx, 1*time.Second)
43
+	attachCtx, cancel := context.WithTimeout(ctx, 5*time.Second)
44 44
 	defer cancel()
45 45
 	res := ctr.RunAttach(attachCtx, t, apiClient,
46 46
 		ctr.WithCmd("ip", "-o", "-4", "addr", "show"),
... ...
@@ -392,7 +392,7 @@ func checkCtrRoutes(t *testing.T, ctx context.Context, apiClient client.APIClien
392 392
 		fam = "-6"
393 393
 	}
394 394
 
395
-	ctx, cancel := context.WithTimeout(ctx, 1*time.Second)
395
+	ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
396 396
 	defer cancel()
397 397
 	res, err := container.Exec(ctx, apiClient, ctrID, []string{"ip", "-o", fam, "route", "show"})
398 398
 	assert.NilError(t, err)