summaryrefslogtreecommitdiffstats
path: root/storage/src/tests
diff options
context:
space:
mode:
authorTor Brede Vekterli <vekterli@oath.com>2018-01-30 12:37:39 +0000
committerTor Brede Vekterli <vekterli@oath.com>2018-01-30 12:37:39 +0000
commit23d1c81595df4335dbd2c6732780c671663894f1 (patch)
tree872e47f7f80757c57e2f58374821e2b1d25c3103 /storage/src/tests
parent3c0eb51abccc00f6710d35c7768db8b23c8b5840 (diff)
Use a non-transient error code for clock skew rejections
Using REJECTED instead of ABORTED fails the message all the way out to the caller immediately instead of hiding the (likely not automatically fixed) problems behind retries and timeouts.
Diffstat (limited to 'storage/src/tests')
-rw-r--r--storage/src/tests/storageserver/bouncertest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/src/tests/storageserver/bouncertest.cpp b/storage/src/tests/storageserver/bouncertest.cpp
index a4f7ed915d8..43683132bc9 100644
--- a/storage/src/tests/storageserver/bouncertest.cpp
+++ b/storage/src/tests/storageserver/bouncertest.cpp
@@ -131,7 +131,7 @@ BouncerTest::testFutureTimestamp()
CPPUNIT_ASSERT_EQUAL(1, (int)_upper->getNumReplies());
CPPUNIT_ASSERT_EQUAL(0, (int)_upper->getNumCommands());
- CPPUNIT_ASSERT_EQUAL(api::ReturnCode::ABORTED,
+ CPPUNIT_ASSERT_EQUAL(api::ReturnCode::REJECTED,
static_cast<api::RemoveReply&>(*_upper->getReply(0)).
getResult().getResult());
_upper->reset();