Skip to content

Commit

Permalink
fix typo and corresponding test case
Browse files Browse the repository at this point in the history
  • Loading branch information
t-horikawa authored and umegane committed Jan 14, 2025
1 parent cd7ccf7 commit 693f8cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/limestone/datastore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ void datastore::update_min_epoch_id(bool from_switch_epoch) { // NOLINT(readabi
upper_limit = working_epoch - 1;
}
}
if (max_finished_epoch < finished_epoch && max_finished_epoch <= upper_limit) {
if (max_finished_epoch < finished_epoch && finished_epoch <= upper_limit) {
max_finished_epoch = finished_epoch;
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/limestone/epoch/finish_soon_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ TEST_F(finish_soon_test, same) {
channel.end_session();

ASSERT_EQ(2, datastore_->epoch_id_informed());
ASSERT_EQ(2, datastore_->epoch_id_recorded());
ASSERT_EQ(0, datastore_->epoch_id_recorded());

datastore_->switch_epoch(4);
ASSERT_EQ(3, datastore_->epoch_id_informed());
Expand Down

0 comments on commit 693f8cd

Please sign in to comment.