diff --git a/tests/dirty.lua b/tests/dirty.lua index b01f098fe5ae..235d41ee7ede 100644 --- a/tests/dirty.lua +++ b/tests/dirty.lua @@ -45,7 +45,7 @@ function test_call_sync_network_robust() local bc2 = BaseControl:new() local addr2 = network.get_scene() - assert_nil(bc2:call("syncr1", 20, 12), "call not nil") + assert_true(bc2:call("syncr1", 20, 12), "call not true") network.inject( addr2, diff --git a/tests/network.lua b/tests/network.lua index 29642dd79267..a194a9d11f3b 100644 --- a/tests/network.lua +++ b/tests/network.lua @@ -61,7 +61,7 @@ function test_call_sync() bc1:finalize() -- Test locally - assert_nil(bc1:call("sync1", 20, 12), "call not nil") + assert_true(bc1:call("sync1", 20, 12), "call not true") local ret, val = bc1:call_sync("sync1", 30, 12) assert_equal(40, ret, "local sync not correct") assert_equal("hello", val, "local sync not multiple") @@ -69,7 +69,7 @@ function test_call_sync() -- Test remote local bc2 = BaseControl:new() - assert_nil(bc2:call("sync1", 20, 12), "call not nil") + assert_true(bc2:call("sync1", 20, 12), "call not true") local ret, val = bc2:call_sync("sync1", 30, 12) assert_equal(40, ret, "local sync not correct") assert_equal("hello", val, "local sync not multiple") diff --git a/tests/timeout.lua b/tests/timeout.lua index d5167391ee3b..952224430ae0 100644 --- a/tests/timeout.lua +++ b/tests/timeout.lua @@ -4,7 +4,7 @@ local network = require("network") local serialization = require("serialization") local BaseControl = require("bc") -module("network", package.seeall, lunit.testcase) +module("timeout", package.seeall, lunit.testcase) function test_timeout_get() local bc = BaseControl:new()