From 595612479d10fa90c38fe5bbc63dd8845aab248a Mon Sep 17 00:00:00 2001 From: Daniel Tsai Date: Tue, 12 Mar 2024 00:32:39 -0400 Subject: [PATCH] Update the testdata to check the expected behavior Using same value 42 can not test against the behavior that duplicated key should result in a failure --- tst/EtcdSyncTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tst/EtcdSyncTest.cpp b/tst/EtcdSyncTest.cpp index e588c28..a0ac32b 100644 --- a/tst/EtcdSyncTest.cpp +++ b/tst/EtcdSyncTest.cpp @@ -18,7 +18,7 @@ TEST_CASE("sync operations") { // add CHECK(0 == etcd.add("/test/key1", "42").error_code()); CHECK(etcd::ERROR_KEY_ALREADY_EXISTS == - etcd.add("/test/key1", "42").error_code()); // Key already exists + etcd.add("/test/key1", "41").error_code()); // Key already exists CHECK("42" == etcd.get("/test/key1").value().as_string()); // modify