fix nstime_update_mock in arena_decay unit test
This commit is contained in:
parent
7c99686165
commit
baa5a90cc6
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue