Skip to content

Commit

Permalink
fixed clock logic
Browse files Browse the repository at this point in the history
  • Loading branch information
antara-chugh committed Aug 22, 2024
1 parent 8c9bc2f commit 471d6db
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/fixed_google_tests_v2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,14 @@ class SchedulerTest : public ::testing::Test

s.getNextTask(nextTask, &(nextTaskTime), clock);

while((clock)!=nextTaskTime){
while((clock)<nextTaskTime){
clock_increment();
}

if(clock==nextTaskTime){

update_clock_time(*(nextTask), delay);
test_log.emplace_back(Log(nextTask, clock));
}

}
compare(expected, iterations);

Expand Down

0 comments on commit 471d6db

Please sign in to comment.