command: Fix TestWorkspace_createWithState
The State.Equal function is now more precise than this test needs. It's only trying to distinguish between an empty state and a non-empty state, so the string representation of state is good enough to get that done while disregarding other subtle differences.
This commit is contained in:
parent
1be09745d7
commit
0ea8aa6fe5
|
@ -276,8 +276,8 @@ func TestWorkspace_createWithState(t *testing.T) {
|
||||||
|
|
||||||
newState := sMgr.State()
|
newState := sMgr.State()
|
||||||
|
|
||||||
if !originalState.Equal(newState) {
|
if got, want := newState.String(), originalState.String(); got != want {
|
||||||
t.Fatalf("states not equal\norig: %s\nnew: %s", originalState, newState)
|
t.Fatalf("states not equal\ngot: %s\nwant: %s", got, want)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue