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 5fa7d12 commit ecacc32
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions test/tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,3 @@ TEST_F(TimedDoorTest, LockUnlockAfterTimeout) {
door.lock();
EXPECT_FALSE(door.isDoorOpened());
}

TEST_F(TimedDoorTest, TimerClientPolymorphism) {
TimerClient *client = new DoorTimerAdapter(TimedDoor(5));
EXPECT_NO_THROW(client->Timeout());
delete client;
}

TEST_F(TimedDoorTest, TimerClientPolymorphismWithException) {
TimedDoor door(5);
door.unlock();
TimerClient *client = new DoorTimerAdapter(door);
EXPECT_THROW(client->Timeout(), std::runtime_error);
delete client;
}

0 comments on commit ecacc32

Please sign in to comment.