# HG changeset patch # User Sebastien Jodogne # Date 1748614969 -7200 # Node ID 9db300bcf8732692e320e6bc741ddb0c1116d669 # Parent 055addebab2a20ef16b9eb3f1af046f29322525c test overwriting in key-value store diff -r 055addebab2a -r 9db300bcf873 OrthancServer/UnitTestsSources/ServerIndexTests.cpp --- a/OrthancServer/UnitTestsSources/ServerIndexTests.cpp Fri May 30 15:38:47 2025 +0200 +++ b/OrthancServer/UnitTestsSources/ServerIndexTests.cpp Fri May 30 16:22:49 2025 +0200 @@ -1207,6 +1207,10 @@ ASSERT_TRUE(op.GetKeyValue(s, "test", "hello3")); ASSERT_EQ("world3", s); ASSERT_FALSE(op.GetKeyValue(s, "test", "hello2")); + ASSERT_TRUE(op.GetKeyValue(s, "test", "hello")); ASSERT_EQ("world", s); + op.StoreKeyValue("test", "hello", "overwritten"); + ASSERT_TRUE(op.GetKeyValue(s, "test", "hello")); ASSERT_EQ("overwritten", s); + op.DeleteKeyValue("test", "nope"); op.DeleteKeyValue("test", "hello");