Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Revert "err"
Browse files Browse the repository at this point in the history
This reverts commit 993c9cb.
  • Loading branch information
sudiksha27 committed Jun 29, 2022
1 parent 993c9cb commit ee5f7ed
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import com.palantir.atlasdb.transaction.api.OpenTransaction;
import com.palantir.atlasdb.transaction.api.Transaction;
import com.palantir.atlasdb.transaction.api.TransactionFailedRetriableException;
import com.palantir.atlasdb.transaction.api.TransactionLockTimeoutException;
import com.palantir.atlasdb.transaction.api.TransactionLockWatchFailedException;
import com.palantir.atlasdb.transaction.api.TransactionManager;
import com.palantir.atlasdb.transaction.impl.PreCommitConditions;
import com.palantir.common.concurrent.PTExecutors;
Expand Down Expand Up @@ -208,8 +208,8 @@ public void leaderElectionDuringTransactionCausesTransactionToFailRetriably() {
return null;
}))
.isInstanceOf(TransactionFailedRetriableException.class)
.isExactlyInstanceOf(TransactionLockTimeoutException.class)
.hasMessageContaining("Locks acquired as part of the transaction protocol are no longer valid.");
.isExactlyInstanceOf(TransactionLockWatchFailedException.class)
.hasMessage("Start timestamp missing from map");

assertThatCode(() -> performWriteTransactionLockingAndUnlockingCells(ImmutableMap.of(CELL_1, DATA_1)))
.doesNotThrowAnyException();
Expand Down

0 comments on commit ee5f7ed

Please sign in to comment.