瀏覽代碼

cmd/swarm/swarm-snapshot: disable tests on windows (#18478)

Elad 6 年之前
父節點
當前提交
632135ce4c
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      cmd/swarm/swarm-snapshot/create_test.go

+ 5 - 0
cmd/swarm/swarm-snapshot/create_test.go

@@ -21,6 +21,7 @@ import (
 	"fmt"
 	"io/ioutil"
 	"os"
+	"runtime"
 	"sort"
 	"strconv"
 	"strings"
@@ -33,6 +34,10 @@ import (
 // It runs a few "create" commands with different flag values and loads generated
 // snapshot files to validate their content.
 func TestSnapshotCreate(t *testing.T) {
+	if runtime.GOOS == "windows" {
+		t.Skip()
+	}
+
 	for _, v := range []struct {
 		name     string
 		nodes    int