Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Commit ff733fa

Browse files
committed
commands/ls: Update tests for lambda-machine-local changes
1 parent 453b680 commit ff733fa

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

commands/ls_test.go

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -297,23 +297,20 @@ func TestGetHostListItems(t *testing.T) {
297297
}
298298

299299
expected := []struct {
300-
name string
301-
state state.State
302-
active bool
303-
version string
304-
error string
300+
name string
301+
state state.State
302+
error string
305303
}{
306-
{"bar10", state.Error, false, "Unknown", "Unable to get ip"},
307-
{"bar100", state.Stopped, false, "Unknown", ""},
308-
{"foo", state.Running, true, "v1.9", ""},
304+
{"bar10", state.Error, "Unable to get ip"},
305+
{"bar100", state.Stopped, ""},
306+
{"foo", state.Running, ""},
309307
}
310308

311309
items := getHostListItems(hosts, map[string]error{}, 10*time.Second)
312310

313311
for i := range expected {
314312
assert.Equal(t, expected[i].name, items[i].Name)
315313
assert.Equal(t, expected[i].state, items[i].State)
316-
assert.Equal(t, expected[i].version, items[i].DockerVersion)
317314
assert.Equal(t, expected[i].error, items[i].Error)
318315
}
319316
}

0 commit comments

Comments
 (0)