aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/tests/transactionlog
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2020-09-04 09:01:00 +0000
committerHenning Baldersheim <balder@yahoo-inc.com>2020-09-04 09:46:31 +0000
commit30687cd09e30977f1b0b889a9800e78fa4524bef (patch)
tree8fc3d8c9295caa1103931669e97976eefb3ca604 /searchlib/src/tests/transactionlog
parentd35901fa3665aaaf0845de0ed813610e2cc70a73 (diff)
Make error checking for and() mandatory and use the Chunk interface to keep the format stuff separate.
Diffstat (limited to 'searchlib/src/tests/transactionlog')
-rw-r--r--searchlib/src/tests/transactionlog/translogclient_test.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/searchlib/src/tests/transactionlog/translogclient_test.cpp b/searchlib/src/tests/transactionlog/translogclient_test.cpp
index d003bad0582..b7eb56d1fd9 100644
--- a/searchlib/src/tests/transactionlog/translogclient_test.cpp
+++ b/searchlib/src/tests/transactionlog/translogclient_test.cpp
@@ -251,7 +251,7 @@ fillDomainTest(TransLogClient::Session * s1, const vespalib::string & name)
Packet b(DEFAULT_PACKET_SIZE);
b.add(e2);
b.add(e3);
- EXPECT_FALSE(b.add(e1));
+ EXPECT_EXCEPTION(b.add(e1), std::runtime_error, "");
ASSERT_TRUE (s1->commit(vespalib::ConstBufferRef(a.getHandle().data(), a.getHandle().size())));
ASSERT_TRUE (s1->commit(vespalib::ConstBufferRef(b.getHandle().data(), b.getHandle().size())));
EXPECT_EXCEPTION(s1->commit(vespalib::ConstBufferRef(a.getHandle().data(), a.getHandle().size())),