Merge pull request #1117 from AkihiroSuda/fix-root-test

*_test.go: fix test conditions
This commit is contained in:
Phil Estes
2017-06-30 12:35:29 -04:00
committed by GitHub
6 changed files with 46 additions and 76 deletions

View File

@@ -8,13 +8,10 @@ import (
)
func TestCheckpointRestore(t *testing.T) {
if testing.Short() {
t.Skip()
}
if !supportsCriu {
t.Skip("system does not have criu installed")
}
client, err := New(address)
client, err := newClient(t, address)
if err != nil {
t.Fatal(err)
}
@@ -103,13 +100,10 @@ func TestCheckpointRestore(t *testing.T) {
}
func TestCheckpointRestoreNewContainer(t *testing.T) {
if testing.Short() {
t.Skip()
}
if !supportsCriu {
t.Skip("system does not have criu installed")
}
client, err := New(address)
client, err := newClient(t, address)
if err != nil {
t.Fatal(err)
}