consul: fixing test using wrong FSM

This commit is contained in:
Armon Dadgar 2015-07-06 14:33:51 -06:00
parent e37b5ecb69
commit 2783f2bfec
1 changed files with 5 additions and 5 deletions

View File

@ -418,7 +418,7 @@ func TestFSM_SnapshotRestore(t *testing.T) {
}
// Verify key is set
_, d, err := fsm.state.KVSGet("/test")
_, d, err := fsm2.state.KVSGet("/test")
if err != nil {
t.Fatalf("err: %v", err)
}
@ -427,7 +427,7 @@ func TestFSM_SnapshotRestore(t *testing.T) {
}
// Verify the index is restored
idx, _, err := fsm.state.KVSListKeys("/blah", "")
idx, _, err := fsm2.state.KVSListKeys("/blah", "")
if err != nil {
t.Fatalf("err: %v", err)
}
@ -436,7 +436,7 @@ func TestFSM_SnapshotRestore(t *testing.T) {
}
// Verify session is restored
idx, s, err := fsm.state.SessionGet(session.ID)
idx, s, err := fsm2.state.SessionGet(session.ID)
if err != nil {
t.Fatalf("err: %v", err)
}
@ -448,7 +448,7 @@ func TestFSM_SnapshotRestore(t *testing.T) {
}
// Verify ACL is restored
idx, a, err := fsm.state.ACLGet(acl.ID)
idx, a, err := fsm2.state.ACLGet(acl.ID)
if err != nil {
t.Fatalf("err: %v", err)
}
@ -460,7 +460,7 @@ func TestFSM_SnapshotRestore(t *testing.T) {
}
// Verify tombstones are restored
_, res, err := fsm.state.tombstoneTable.Get("id", "/remove")
_, res, err := fsm2.state.tombstoneTable.Get("id", "/remove")
if err != nil {
t.Fatalf("err: %v", err)
}