fix test that never worked

The 0.12 update left this test broken. Make sure we're working with the
correct objects here.
This commit is contained in:
James Bardin 2019-02-22 10:14:53 -05:00
parent c40530afb0
commit f6af61f990
1 changed files with 6 additions and 1 deletions

View File

@ -199,6 +199,11 @@ func TestBackendExtraPaths(t *testing.T) {
}
// remove the state with extra subkey
if err := client.Delete(); err != nil {
t.Fatal(err)
}
// delete the real workspace
if err := b.DeleteWorkspace("s2"); err != nil {
t.Fatal(err)
}
@ -216,7 +221,7 @@ func TestBackendExtraPaths(t *testing.T) {
t.Fatal(err)
}
if stateMgr.StateSnapshotMeta().Lineage == s2Lineage {
if s2Mgr.(*remote.State).StateSnapshotMeta().Lineage == s2Lineage {
t.Fatal("state s2 was not deleted")
}
s2 = s2Mgr.State()