Browse code

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 <dennis.chen@arm.com>

Dennis Chen authored on 2018/02/09 12:20:14
Showing 1 changed files
... ...
@@ -47,7 +47,7 @@ func TestInspectNetwork(t *testing.T) {
47 47
 	require.NoError(t, err)
48 48
 
49 49
 	pollSettings := func(config *poll.Settings) {
50
-		if runtime.GOARCH == "arm" {
50
+		if runtime.GOARCH == "arm64" || runtime.GOARCH == "arm" {
51 51
 			config.Timeout = 30 * time.Second
52 52
 			config.Delay = 100 * time.Millisecond
53 53
 		}