|
1 | 1 | package commands |
2 | 2 |
|
3 | 3 | import ( |
| 4 | + "errors" |
4 | 5 | "os" |
5 | 6 | "testing" |
6 | | - |
7 | 7 | "time" |
8 | 8 |
|
9 | | - "errors" |
10 | | - |
11 | 9 | "github.com/rancher/machine/drivers/fakedriver" |
12 | 10 | "github.com/rancher/machine/libmachine/engine" |
13 | 11 | "github.com/rancher/machine/libmachine/host" |
@@ -340,7 +338,7 @@ func TestGetHostListItems(t *testing.T) { |
340 | 338 | version string |
341 | 339 | error string |
342 | 340 | }{ |
343 | | - {"bar10", state.Error, false, "Unknown", "Unable to get ip"}, |
| 341 | + {"bar10", state.Error, false, "Unknown", "unable to get ip"}, |
344 | 342 | {"bar100", state.Stopped, false, "Unknown", ""}, |
345 | 343 | {"foo", state.Running, true, "v1.9", ""}, |
346 | 344 | } |
@@ -490,7 +488,7 @@ func TestGetHostStateError(t *testing.T) { |
490 | 488 | assert.Equal(t, state.Error, hostItem.State) |
491 | 489 | assert.Equal(t, "Driver", hostItem.DriverName) |
492 | 490 | assert.Empty(t, hostItem.URL) |
493 | | - assert.Equal(t, "Unable to get ip", hostItem.Error) |
| 491 | + assert.Equal(t, "unable to get ip", hostItem.Error) |
494 | 492 | assert.Nil(t, hostItem.SwarmOptions) |
495 | 493 | } |
496 | 494 |
|
|
0 commit comments