This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 859ed33  Make functional tests more tolerant to timing issues
859ed33 is described below

commit 859ed333594d887f05268cdb04a8ae9ccc89dd20
Author: Harbs <[email protected]>
AuthorDate: Sun Jan 9 16:11:22 2022 +0200

    Make functional tests more tolerant to timing issues
---
 .../Core/src/test/royale/flexUnitTests/FunctionalTests.as    | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git 
a/frameworks/projects/Core/src/test/royale/flexUnitTests/FunctionalTests.as 
b/frameworks/projects/Core/src/test/royale/flexUnitTests/FunctionalTests.as
index 5bf52cf..5484631 100644
--- a/frameworks/projects/Core/src/test/royale/flexUnitTests/FunctionalTests.as
+++ b/frameworks/projects/Core/src/test/royale/flexUnitTests/FunctionalTests.as
@@ -145,8 +145,8 @@ package flexUnitTests
             },110);
             Async.delayCall(this, function():void
             {
-                assertEquals(foo.value,7,"foo value should be 7")
-                assertEquals(value,7,"value should be 7")
+                assertTrue(foo.value > 6 && foo.value < 9, foo.value +": foo 
value should be 7");
+                assertTrue(value > 6 && value < 9, value + ": value should be 
7");
             }, 300);
         }
         [Test(async,timeout="300")]
@@ -191,8 +191,8 @@ package flexUnitTests
             },110);
             Async.delayCall(this, function():void
             {
-                assertEquals(foo.value,7,"foo value should be 7");
-                assertEquals(value,7,"value should be 7");
+                assertTrue(foo.value > 6 && foo.value < 9, foo.value +": foo 
value should be 7");
+                assertTrue(value > 6 && value < 9, value + ": value should be 
7");
             }, 300);
         }
         [Test(async,timeout="300")]
@@ -237,8 +237,8 @@ package flexUnitTests
 
             Async.delayCall(this, function():void
             {
-                assertEquals(savedThisValue,2,"foo value should be 2");
-                assertEquals(savedValue,2,"value should be 2");
+                assertTrue(savedThisValue > 1 && savedThisValue < 
4,savedThisValue + ": foo value should be 2");
+                assertTrue(savedValue > 1 && savedValue < 4,savedValue + ": 
value should be 2");
                 assertEquals(stoppedValue,1,"value should be 1");
             }, 300);
         }

Reply via email to