Skip to content

Commit e253c99

Browse files
committed
Fix tests
1 parent c8dc2df commit e253c99

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

source/scheduler/scheduler.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ bool Scheduler::tick() {
3939
void Scheduler::clear() {
4040
m_near_events =
4141
NearEventsStorage(M_MAX_COUNTSORT_CAPACITY.value_nanoseconds());
42+
std::priority_queue<std::unique_ptr<Event>,
43+
std::vector<std::unique_ptr<Event>>, EventComparator>()
44+
.swap(m_far_events);
4245
m_current_event_local_time = TimeNs(0);
4346
}
4447

source/scheduler/scheduler.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class Scheduler {
5353
TimeNs get_current_time();
5454

5555
private:
56-
static constexpr inline TimeNs M_MAX_COUNTSORT_CAPACITY = TimeNs(50'000);
56+
static constexpr inline TimeNs M_MAX_COUNTSORT_CAPACITY = TimeNs(10'000);
5757

5858
// Private constructor to prevent instantiation
5959
Scheduler()

0 commit comments

Comments
 (0)