test fix
This commit is contained in:
1 parent
78102e747b
commit
d09facc9ff
1 file changed
+7
-7
@@ -38,7 +38,7 @@ namespace Tests
|
||||
msg = wait(1000, messagePort)
|
||||
|
||||
if msg = invalid
|
||||
m.testSuite.fail("Waiting for job messages timed out after 1000ms")
|
||||
m.fail("Waiting for job messages timed out after 1000ms")
|
||||
exit while
|
||||
end if
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace Tests
|
||||
msg = wait(1000, messagePort)
|
||||
|
||||
if msg = invalid
|
||||
m.testSuite.fail("Waiting for job messages timed out after 1000ms")
|
||||
m.fail("Waiting for job messages timed out after 1000ms")
|
||||
exit while
|
||||
end if
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace Tests
|
||||
if info.cancel and not info.success
|
||||
cancelCalls += 1
|
||||
else if info.success
|
||||
m.testSuite.fail("Job should not have succeeded after cancellation")
|
||||
m.fail("Job should not have succeeded after cancellation")
|
||||
exit while
|
||||
end if
|
||||
end if
|
||||
@@ -126,7 +126,7 @@ namespace Tests
|
||||
msg = wait(1000, messagePort)
|
||||
|
||||
if msg = invalid
|
||||
m.testSuite.fail("Waiting for job messages timed out after 1000ms")
|
||||
m.fail("Waiting for job messages timed out after 1000ms")
|
||||
exit while
|
||||
end if
|
||||
|
||||
@@ -136,7 +136,7 @@ namespace Tests
|
||||
if info.cancel and not info.success
|
||||
cancelCalls += 1
|
||||
else if info.success
|
||||
m.testSuite.fail("Job should not have succeeded after cancellation")
|
||||
m.fail("Job should not have succeeded after cancellation")
|
||||
exit while
|
||||
end if
|
||||
end if
|
||||
@@ -161,11 +161,11 @@ namespace Tests
|
||||
msg = wait(1000, messagePort)
|
||||
|
||||
if msg = invalid
|
||||
m.testSuite.fail("Waiting for job error message timed out after 1000ms")
|
||||
m.fail("Waiting for job error message timed out after 1000ms")
|
||||
end if
|
||||
|
||||
if type(msg) <> "roSGNodeEvent" or msg.getField() <> "done"
|
||||
m.testSuite.fail("Expected a done event for the job error")
|
||||
m.fail("Expected a done event for the job error")
|
||||
end if
|
||||
|
||||
done = msg.getData()
|
||||
|
||||
Reference in new issue
Block a user