Browse code

Merge pull request #35572 from arm64b/big-image-imp-test-aarch64

image: skip the import test on AArch64

Vincent Demeester authored on 2017/11/28 21:51:15
Showing 1 changed files
... ...
@@ -5,6 +5,7 @@ import (
5 5
 	"bytes"
6 6
 	"context"
7 7
 	"io"
8
+	"runtime"
8 9
 	"testing"
9 10
 
10 11
 	"github.com/docker/docker/api/types"
... ...
@@ -14,12 +15,17 @@ import (
14 14
 
15 15
 // Ensure we don't regress on CVE-2017-14992.
16 16
 func TestImportExtremelyLargeImageWorks(t *testing.T) {
17
+	if runtime.GOARCH == "arm64" {
18
+		t.Skip("effective test will be time out")
19
+	}
20
+
17 21
 	client := request.NewAPIClient(t)
18 22
 
19 23
 	// Construct an empty tar archive with about 8GB of junk padding at the
20 24
 	// end. This should not cause any crashes (the padding should be mostly
21 25
 	// ignored).
22 26
 	var tarBuffer bytes.Buffer
27
+
23 28
 	tw := tar.NewWriter(&tarBuffer)
24 29
 	if err := tw.Close(); err != nil {
25 30
 		t.Fatal(err)