Commit 51021fdf authored by Pavel Vainerman's avatar Pavel Vainerman

(UNetUDP): корректировка теста

parent d8f748e1
...@@ -508,6 +508,7 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname ...@@ -508,6 +508,7 @@ mv -f %buildroot%python_sitelibdir_noarch/* %buildroot%python_sitelibdir/%oname
# Modbus: refactoring code and test (for 64bit) # Modbus: refactoring code and test (for 64bit)
# iobase: refactoring tests for 64bit # iobase: refactoring tests for 64bit
# TCPCheck: fixed bug (for exit thread) # TCPCheck: fixed bug (for exit thread)
# UNetUDP: minor fixes in tests
%changelog %changelog
* Mon Dec 12 2016 Pavel Vainerman <pv@altlinux.ru> 2.6-alt6 * Mon Dec 12 2016 Pavel Vainerman <pv@altlinux.ru> 2.6-alt6
......
...@@ -298,7 +298,7 @@ TEST_CASE("[UNetUDP]: check receiver", "[unetudp][receiver]") ...@@ -298,7 +298,7 @@ TEST_CASE("[UNetUDP]: check receiver", "[unetudp][receiver]")
REQUIRE( ui->getValue(11) == 0 ); REQUIRE( ui->getValue(11) == 0 );
send(pack); send(pack);
msleep(200); msleep(500);
REQUIRE( ui->getValue(8) == 100 ); REQUIRE( ui->getValue(8) == 100 );
REQUIRE( ui->getValue(9) == -100 ); REQUIRE( ui->getValue(9) == -100 );
REQUIRE( ui->getValue(10) == 1 ); REQUIRE( ui->getValue(10) == 1 );
...@@ -316,7 +316,7 @@ TEST_CASE("[UNetUDP]: check receiver", "[unetudp][receiver]") ...@@ -316,7 +316,7 @@ TEST_CASE("[UNetUDP]: check receiver", "[unetudp][receiver]")
pack.addDData(10, false); pack.addDData(10, false);
pack.addDData(11, true); pack.addDData(11, true);
send(pack); send(pack);
msleep(200); msleep(500);
REQUIRE( ui->getValue(8) == 10 ); REQUIRE( ui->getValue(8) == 10 );
REQUIRE( ui->getValue(9) == -10 ); REQUIRE( ui->getValue(9) == -10 );
REQUIRE( ui->getValue(10) == 0 ); REQUIRE( ui->getValue(10) == 0 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment