From 2f5192685259625754a36bc6f4a22fd09d4fc4f0 Mon Sep 17 00:00:00 2001 From: James Phillips Date: Mon, 9 May 2016 22:18:26 -0700 Subject: [PATCH] Adds an empty get test case. --- consul/state/kvs_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/consul/state/kvs_test.go b/consul/state/kvs_test.go index cb92e771a4..e9ff0d2392 100644 --- a/consul/state/kvs_test.go +++ b/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{