From 8f5c1841a8bffb4a7e33f51174177b7ad0182969 Mon Sep 17 00:00:00 2001 From: Dennis Chen Date: Fri, 9 Feb 2018 03:20:14 +0000 Subject: [PATCH] Fix timeout issue of `InspectNetwork` on AArch64 Service of inspect network can't be finished within 10s on AArch64 platform, so we need to adjust the timeout value avoid to paper cover the real issue, plus to make the integreation test can continue while not terminate with below error: > === RUN TestInspectNetwork > --- FAIL: TestInspectNetwork (27.65s) > daemon.go:285: [de79880f4ed4a] waiting for daemon to start > daemon.go:317: [de79880f4ed4a] daemon started > inspect_test.go:57: timeout hit after 10s: waiting for tasks to enter run state > daemon.go:275: [de79880f4ed4a] exiting daemon > FAIL > ---> Making bundle: .integration-daemon-stop (in bundles/test-integration) > Removing test suite binaries > Makefile:171: recipe for target 'test-integration' failed Signed-off-by: Dennis Chen --- integration/network/inspect_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration/network/inspect_test.go b/integration/network/inspect_test.go index 94218af084..df586224a1 100644 --- a/integration/network/inspect_test.go +++ b/integration/network/inspect_test.go @@ -47,7 +47,7 @@ func TestInspectNetwork(t *testing.T) { require.NoError(t, err) pollSettings := func(config *poll.Settings) { - if runtime.GOARCH == "arm" { + if runtime.GOARCH == "arm64" || runtime.GOARCH == "arm" { config.Timeout = 30 * time.Second config.Delay = 100 * time.Millisecond }