Browse Source

Adds an empty get test case.

pull/2028/head
James Phillips 9 years ago
parent
commit
2f51926852
  1. 7
      consul/state/kvs_test.go

7
consul/state/kvs_test.go

@ -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{

Loading…
Cancel
Save