Skip to content

Commit

Permalink
Added check to FateStoreIT.testAbsent()
Browse files Browse the repository at this point in the history
Added check that both stores have the same expected functionality when
trying to reserve a non-existent fate id
  • Loading branch information
kevinrr888 committed Aug 2, 2024
1 parent d62c17e commit 367bc7c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -453,11 +453,12 @@ public void testAbsent() throws Exception {

protected void testAbsent(FateStore<TestEnv> store, ServerContext sctx) {
// Ensure both store implementations have consistent behavior when reading a fateId that does
// not exists.
// not exist.

var fateId = FateId.from(store.type(), UUID.randomUUID());
var txStore = store.read(fateId);

assertTrue(store.tryReserve(fateId).isEmpty());
assertEquals(TStatus.UNKNOWN, txStore.getStatus());
assertNull(txStore.top());
assertNull(txStore.getTransactionInfo(TxInfo.TX_NAME));
Expand Down

0 comments on commit 367bc7c

Please sign in to comment.