cmd/swarm: speed up tests - use global cluster (#18129)
This commit is contained in:
committed by
GitHub
parent
3333fe660f
commit
6b6c4d1c27
@ -43,8 +43,8 @@ func TestCLISwarmExportImport(t *testing.T) {
|
||||
}
|
||||
cluster := newTestCluster(t, 1)
|
||||
|
||||
// generate random 10mb file
|
||||
content := testutil.RandomBytes(1, 10000000)
|
||||
// generate random 1mb file
|
||||
content := testutil.RandomBytes(1, 1000000)
|
||||
fileName := testutil.TempFileWithContent(t, string(content))
|
||||
defer os.Remove(fileName)
|
||||
|
||||
|
Reference in New Issue
Block a user