diff options
author | David Rogers <davidrogers@google.com> | 2020-05-12 17:46:36 -0700 |
---|---|---|
committer | CQ Bot Account <commit-bot@chromium.org> | 2020-05-13 18:43:19 +0000 |
commit | d50eb1cff3d49e9499c478b3a55c408afc997b83 (patch) | |
tree | 6bd6d0fc5874420b56c69188a163324b98abb04b /pw_kvs/key_value_store_test.cc | |
parent | fe9723cd67796e9236022cde6ef42cda99682d77 (diff) | |
download | pigweed-d50eb1cff3d49e9499c478b3a55c408afc997b83.tar.gz |
pw_kvs: Don't use checksum for same value write check
When checking if a same value is being written, don't use the checksum
as part of the check. Checksum includes the transaction ID, which will
always be different, resulting the the check always failing.
Change-Id: I3ef3e336f4e1048b2fb7944f2b8fd0b000415c9b
Diffstat (limited to 'pw_kvs/key_value_store_test.cc')
-rw-r--r-- | pw_kvs/key_value_store_test.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pw_kvs/key_value_store_test.cc b/pw_kvs/key_value_store_test.cc index d2f33fc37..0c9d48ecd 100644 --- a/pw_kvs/key_value_store_test.cc +++ b/pw_kvs/key_value_store_test.cc @@ -738,9 +738,8 @@ TEST(InMemoryKvs, WriteOneKeyValueMultipleTimes) { ASSERT_OK(flash.partition.Erase()); // Create and initialize the KVS. - constexpr EntryFormat format{.magic = 0xBAD'C0D3, .checksum = nullptr}; KeyValueStoreBuffer<kMaxEntries, kMaxUsableSectors> kvs(&flash.partition, - format); + default_format); ASSERT_OK(kvs.Init()); // Add one entry, with the same key and value, multiple times. |