UnitTests: Fix blocking case
Former-commit-id: 10d46cfff7380c1c98942a34386b462f41c8ccb7 [formerly fa3e8494f3c0912fcd6afed3eef746abbd7a38f0] Former-commit-id: 8fca4ecb8466e1240c489eacdee5303ed461f24b
This commit is contained in:
parent
f9d6f27e92
commit
2203d57818
|
|
@ -9,8 +9,11 @@ SCENARIO("Model", "[GRAPHICS][MODEL]")
|
||||||
{
|
{
|
||||||
THEN("These results are expected")
|
THEN("These results are expected")
|
||||||
{
|
{
|
||||||
|
Nz::ModelParameters params;
|
||||||
|
params.mesh.optimizeIndexBuffers = false;
|
||||||
|
|
||||||
Nz::ModelRef model = Nz::Model::New();
|
Nz::ModelRef model = Nz::Model::New();
|
||||||
REQUIRE(model->LoadFromFile("resources/Engine/Graphics/dragon_recon/dragon_vrip_res4.obj"));
|
REQUIRE(model->LoadFromFile("resources/Engine/Graphics/dragon_recon/dragon_vrip_res4.obj", params));
|
||||||
|
|
||||||
REQUIRE(model->GetMaterialCount() == 2);
|
REQUIRE(model->GetMaterialCount() == 2);
|
||||||
REQUIRE(model->GetSkin() == 0);
|
REQUIRE(model->GetSkin() == 0);
|
||||||
|
|
|
||||||
|
|
@ -18,6 +18,8 @@ SCENARIO("TCP", "[NETWORK][TCP]")
|
||||||
|
|
||||||
Nz::UInt16 port = dis(gen);
|
Nz::UInt16 port = dis(gen);
|
||||||
Nz::TcpServer server;
|
Nz::TcpServer server;
|
||||||
|
server.EnableBlocking(false);
|
||||||
|
|
||||||
REQUIRE(server.Listen(Nz::NetProtocol_IPv4, port) == Nz::SocketState_Bound);
|
REQUIRE(server.Listen(Nz::NetProtocol_IPv4, port) == Nz::SocketState_Bound);
|
||||||
Nz::IpAddress serverIP = server.GetBoundAddress();
|
Nz::IpAddress serverIP = server.GetBoundAddress();
|
||||||
REQUIRE(serverIP.IsValid());
|
REQUIRE(serverIP.IsValid());
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue