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 ecacc32 commit f40c885
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 @@ -74,12 +74,6 @@ TEST_F(TimedDoorTest, DoorTimerAdapterTimeoutDoorOpened) {
EXPECT_THROW(adapter.Timeout(), std::runtime_error);
}

TEST_F(TimedDoorTest, TimerRegister) {
TimedDoor door(5);
timer.tregister(5, new DoorTimerAdapter(door));
EXPECT_THROW(timer.tregister(5, new DoorTimerAdapter(door)),
std::runtime_error);
}

TEST_F(TimedDoorTest, TimerRegisterNoTimeout) {
TimedDoor door(5);
Expand Down Expand Up @@ -107,11 +101,3 @@ TEST_F(TimedDoorTest, MultipleUnlockLockCycles) {
EXPECT_FALSE(door.isDoorOpened());
}
}

TEST_F(TimedDoorTest, LockUnlockAfterTimeout) {
TimedDoor door(5);
door.unlock();
timer.tregister(5, new DoorTimerAdapter(door));
door.lock();
EXPECT_FALSE(door.isDoorOpened());
}

0 comments on commit f40c885

Please sign in to comment.