Skip to content
This repository has been archived by the owner on Mar 3, 2020. It is now read-only.

Commit

Permalink
KEP-899 used EXPECT_NO_THROW instead of a try block and FAIL
Browse files Browse the repository at this point in the history
  • Loading branch information
rnistuk committed Dec 17, 2018
1 parent 60cd9b1 commit 09e0688
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions pbft/test/database_pbft_service_test.cpp
Expand Up @@ -79,14 +79,8 @@ TEST(database_pbft_service, test_that_failed_storing_of_operation_does_not_throw
bzn_envelope request;
request.set_database_msg(dmsg.SerializeAsString());
operation->record_request(request);
try
{
dps.apply_operation(operation);
}
catch(...)
{
FAIL() << "apply_operation must not throw in the case of attempting to add an existing database entry";
}

EXPECT_NO_THROW(dps.apply_operation(operation));
}

TEST(database_pbft_service, test_that_executed_operation_fires_callback_with_operation)
Expand Down

0 comments on commit 09e0688

Please sign in to comment.