mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
integration: increase timeout
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
@@ -40,7 +40,7 @@ func TestCreateWithMultiNetworks(t *testing.T) {
|
||||
network.CreateNoError(ctx, t, apiClient, "testnet2")
|
||||
defer network.RemoveNoError(ctx, t, apiClient, "testnet2")
|
||||
|
||||
attachCtx, cancel := context.WithTimeout(ctx, 1*time.Second)
|
||||
attachCtx, cancel := context.WithTimeout(ctx, 5*time.Second)
|
||||
defer cancel()
|
||||
res := ctr.RunAttach(attachCtx, t, apiClient,
|
||||
ctr.WithCmd("ip", "-o", "-4", "addr", "show"),
|
||||
|
||||
@@ -392,7 +392,7 @@ func checkCtrRoutes(t *testing.T, ctx context.Context, apiClient client.APIClien
|
||||
fam = "-6"
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithTimeout(ctx, 1*time.Second)
|
||||
ctx, cancel := context.WithTimeout(ctx, 5*time.Second)
|
||||
defer cancel()
|
||||
res, err := container.Exec(ctx, apiClient, ctrID, []string{"ip", "-o", fam, "route", "show"})
|
||||
assert.NilError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user