From cef2747589903dd73f160ca1dee39ff42e290e84 Mon Sep 17 00:00:00 2001 From: "Lucas, John P." Date: Tue, 2 Jul 2024 08:53:07 -0400 Subject: [PATCH] [nasa/nos3#176] Increase fudge factors due to VM running docker in NOS3 causing increase translation load; --- src/tests/timer-add-api-test/timer-add-api-test.c | 4 ++-- src/tests/timer-test/timer-test.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests/timer-add-api-test/timer-add-api-test.c b/src/tests/timer-add-api-test/timer-add-api-test.c index 6f34f01bd..bae4dfee2 100644 --- a/src/tests/timer-add-api-test/timer-add-api-test.c +++ b/src/tests/timer-add-api-test/timer-add-api-test.c @@ -170,8 +170,8 @@ void TestTimerAddApi(void) * Since all these counts are affected by test system load, * allow for some fudge factor before declaring failure */ - UtAssert_True(timer_counter[i] >= (expected - 3), "Timer %d count >= %d", (int)i, (int)(expected - 3)); - UtAssert_True(timer_counter[i] <= (expected + 3), "Timer %d count <= %d", (int)i, (int)(expected + 3)); + UtAssert_True(timer_counter[i] >= (expected - 6), "Timer %d count >= %d", (int)i, (int)(expected - 6)); + UtAssert_True(timer_counter[i] <= (expected + 6), "Timer %d count <= %d", (int)i, (int)(expected + 6)); } /* Test nominal inputs */ diff --git a/src/tests/timer-test/timer-test.c b/src/tests/timer-test/timer-test.c index a2ba04b7b..94d5781b4 100644 --- a/src/tests/timer-test/timer-test.c +++ b/src/tests/timer-test/timer-test.c @@ -216,8 +216,8 @@ void TimerTestCheck(void) * Since all these counts are affected by test system load, * allow for some fudge factor before declaring failure */ - UtAssert_True(timer_counter[i] >= (expected - 3), "Timer %d count >= %d", (int)i, (int)(expected - 3)); - UtAssert_True(timer_counter[i] <= (expected + 3), "Timer %d count <= %d", (int)i, (int)(expected + 3)); + UtAssert_True(timer_counter[i] >= (expected - 6), "Timer %d count >= %d", (int)i, (int)(expected - 6)); + UtAssert_True(timer_counter[i] <= (expected + 6), "Timer %d count <= %d", (int)i, (int)(expected + 6)); } } }