Adds an empty get test case.

This commit is contained in:
James Phillips 2016-05-09 22:18:26 -07:00
parent 471160d8f0
commit 6a96e052c4
1 changed files with 7 additions and 0 deletions

View File

@ -1292,6 +1292,12 @@ func TestStateStore_KVS_Atomic(t *testing.T) {
Key: "foo/update",
},
},
&structs.KVSAtomicOp{
Op: structs.KVSAtomicGet,
DirEnt: structs.DirEntry{
Key: "not/there",
},
},
&structs.KVSAtomicOp{
Op: structs.KVSAtomicCheckIndex,
DirEnt: structs.DirEntry{
@ -1386,6 +1392,7 @@ func TestStateStore_KVS_Atomic(t *testing.T) {
ModifyIndex: 8,
},
},
nil, // get on not/there
&structs.DirEntry{
Key: "foo/update",
RaftIndex: structs.RaftIndex{