Skip to content

Commit

Permalink
fix: make sure all individual keys and values are always unique
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-gang committed Jun 14, 2024
1 parent af87ab5 commit 4bf9120
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion internal/test_txn_tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ func testTxSuccess(stageHarness *test_case_harness.TestCaseHarness) error {
defer client.Close()
}

key1, key2 := random.RandomWord(), random.RandomWord()
uniqueKeys := random.RandomWords(2)
key1, key2 := uniqueKeys[0], uniqueKeys[1]
randomIntegerValue := random.RandomInt(1, 100)

transactionTestCase := test_cases.TransactionTestCase{
Expand Down
5 changes: 3 additions & 2 deletions internal/test_txn_tx_failure.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ func testTxErr(stageHarness *test_case_harness.TestCaseHarness) error {
defer client.Close()
}

key1, key2 := random.RandomWord(), random.RandomWord()
randomStringValue := random.RandomWord()
uniqueKeys := random.RandomWords(3)
key1, key2 := uniqueKeys[0], uniqueKeys[1]
randomStringValue := uniqueKeys[2]
randomIntegerValue := random.RandomInt(1, 100)

multiCommandTestCase := test_cases.MultiCommandTestCase{
Expand Down

0 comments on commit 4bf9120

Please sign in to comment.