Add test flag for setting containerd address

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-05-25 11:40:35 -07:00
parent 89037568d3
commit cebe099358
6 changed files with 34 additions and 16 deletions

View File

@@ -8,9 +8,8 @@ import (
func TestContainerList(t *testing.T) {
if testing.Short() {
t.Skip()
return
}
client, err := New(defaultAddress)
client, err := New(address)
if err != nil {
t.Fatal(err)
}
@@ -29,9 +28,8 @@ func TestContainerList(t *testing.T) {
func TestNewContainer(t *testing.T) {
if testing.Short() {
t.Skip()
return
}
client, err := New(defaultAddress)
client, err := New(address)
if err != nil {
t.Fatal(err)
}