Skip to content

Commit

Permalink
chore: implemented changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
charliekush committed Aug 28, 2024
1 parent a365ab0 commit 2c5ad90
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
10 changes: 4 additions & 6 deletions tests/examine_behavior.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,11 @@ class ExamineBehavior
}

std::string delimiter = "|";
std::ifstream sch_log( "scheduler.log" );
for( std::string line; getline( sch_log, line); )
std::ofstream sch_log("scheduler.log");
for (const auto& log = scheduler->log.front();
scheduler->log.size() > 0; scheduler->log.pop())
{
std::string ensemble = line.substr(0,line.find(delimiter));
std::string idx = line.substr(line.find(delimiter) + 1);


sch_log << std::get<0>(log) << "|" << std::get<1>(log) << "\n";
}


Expand Down
2 changes: 1 addition & 1 deletion tests/fixed_google_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ class SchedulerFixedTests : public ::testing::Test
test_log.emplace_back(Log(nextTask, clock));
update_clock_time(nextTask, delay);
DeploymentSchedule_* t = nextTask;
std::cout << t->taskName << "time: " << clock << std::endl;


}
compare(expected, iterations);
Expand Down
6 changes: 2 additions & 4 deletions tests/test_file_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -267,15 +267,13 @@ Log::Log(DeploymentSchedule_ *task, std::uint32_t time) {
DeploymentSchedule_ *table = task;
this->taskName = table->taskName;
this->runTime = time;
std::cout << "Log created with taskName: " << this->taskName
<< ", runTime: " << this->runTime << std::endl;

}

Log::Log(const char* name, std::uint32_t time) {
this->taskName = name;
this->runTime = time;
std::cout << "Log created with taskName: " << this->taskName
<< ", runTime: " << this->runTime << std::endl;

}

const char* Log::getName(void)
Expand Down

0 comments on commit 2c5ad90

Please sign in to comment.