fix nstime_update_mock in arena_decay unit test

This commit is contained in:
Shirui Cheng 2024-08-28 15:17:11 -07:00 committed by Qi Wang
parent 7c99686165
commit baa5a90cc6
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@ nstime_monotonic_mock(void) {
static void
nstime_update_mock(nstime_t *time) {
nupdates_mock++;
if (monotonic_mock) {
if (monotonic_mock && nstime_compare(&time_mock, time) > 0) {
nstime_copy(time, &time_mock);
}
}