We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 453b680 commit ff733faCopy full SHA for ff733fa
1 file changed
commands/ls_test.go
@@ -297,23 +297,20 @@ func TestGetHostListItems(t *testing.T) {
297
}
298
299
expected := []struct {
300
- name string
301
- state state.State
302
- active bool
303
- version string
304
- error string
+ name string
+ state state.State
+ error string
305
}{
306
- {"bar10", state.Error, false, "Unknown", "Unable to get ip"},
307
- {"bar100", state.Stopped, false, "Unknown", ""},
308
- {"foo", state.Running, true, "v1.9", ""},
+ {"bar10", state.Error, "Unable to get ip"},
+ {"bar100", state.Stopped, ""},
+ {"foo", state.Running, ""},
309
310
311
items := getHostListItems(hosts, map[string]error{}, 10*time.Second)
312
313
for i := range expected {
314
assert.Equal(t, expected[i].name, items[i].Name)
315
assert.Equal(t, expected[i].state, items[i].State)
316
- assert.Equal(t, expected[i].version, items[i].DockerVersion)
317
assert.Equal(t, expected[i].error, items[i].Error)
318
319
0 commit comments