Skip to content

Commit

Permalink
Tweaked tests
Browse files Browse the repository at this point in the history
  • Loading branch information
greymistcube committed Jan 18, 2024
1 parent ce54ebd commit c61248d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Libplanet.Tests/Store/TrieStateStoreTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,12 @@ public void CopyStates()
trie = stateStore.Commit(trie);
int prevStatesCount = _stateKeyValueStore.ListKeys().Count();

// NOTE: Avoid possible collision of KeyBytes, just in case.
_stateKeyValueStore.Set(
new KeyBytes("alpha"),
new KeyBytes(GetRandomBytes(30)),
ByteUtil.ParseHex("00"));
_stateKeyValueStore.Set(
new KeyBytes("beta"),
new KeyBytes(GetRandomBytes(40)),
ByteUtil.ParseHex("00"));

Assert.Equal(prevStatesCount + 2, _stateKeyValueStore.ListKeys().Count());
Expand Down

0 comments on commit c61248d

Please sign in to comment.