Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KirFedotov committed May 30, 2024
1 parent 60f842d commit 5fa7d12
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ TEST_F(TimedDoorTest, DoorTimerAdapterTimeoutDoorOpened) {
TEST_F(TimedDoorTest, TimerRegister) {
TimedDoor door(5);
timer.tregister(5, new DoorTimerAdapter(door));
EXPECT_THROW(timer.tregister(5, new DoorTimerAdapter(door)), std::runtime_error);
EXPECT_THROW(timer.tregister(5, new DoorTimerAdapter(door)),
std::runtime_error);
}

TEST_F(TimedDoorTest, TimerRegisterNoTimeout) {
Expand Down Expand Up @@ -127,4 +128,4 @@ TEST_F(TimedDoorTest, TimerClientPolymorphismWithException) {
TimerClient *client = new DoorTimerAdapter(door);
EXPECT_THROW(client->Timeout(), std::runtime_error);
delete client;
}
}

0 comments on commit 5fa7d12

Please sign in to comment.