mirror of https://github.com/status-im/consul.git
Adds an empty get test case.
This commit is contained in:
parent
e491245062
commit
2f51926852
|
@ -1292,6 +1292,12 @@ func TestStateStore_KVS_Atomic(t *testing.T) {
|
||||||
Key: "foo/update",
|
Key: "foo/update",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
&structs.KVSAtomicOp{
|
||||||
|
Op: structs.KVSAtomicGet,
|
||||||
|
DirEnt: structs.DirEntry{
|
||||||
|
Key: "not/there",
|
||||||
|
},
|
||||||
|
},
|
||||||
&structs.KVSAtomicOp{
|
&structs.KVSAtomicOp{
|
||||||
Op: structs.KVSAtomicCheckIndex,
|
Op: structs.KVSAtomicCheckIndex,
|
||||||
DirEnt: structs.DirEntry{
|
DirEnt: structs.DirEntry{
|
||||||
|
@ -1386,6 +1392,7 @@ func TestStateStore_KVS_Atomic(t *testing.T) {
|
||||||
ModifyIndex: 8,
|
ModifyIndex: 8,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
nil, // get on not/there
|
||||||
&structs.DirEntry{
|
&structs.DirEntry{
|
||||||
Key: "foo/update",
|
Key: "foo/update",
|
||||||
RaftIndex: structs.RaftIndex{
|
RaftIndex: structs.RaftIndex{
|
||||||
|
|
Loading…
Reference in New Issue