UnitTests: Fix blocking case

Former-commit-id: 9bb17734f853246eadfdd547bbfdc8c54638cf0d [formerly ca377bfec10cb158b91d050af6a1f59835d04cce]
Former-commit-id: 27d29d41082f8f796518c36d063e7b3afd6768e1
This commit is contained in:
Lynix 2016-07-29 13:38:00 +02:00
parent df828cd0df
commit e7d2cd9842
2 changed files with 6 additions and 1 deletions

View File

@ -9,8 +9,11 @@ SCENARIO("Model", "[GRAPHICS][MODEL]")
{
THEN("These results are expected")
{
Nz::ModelParameters params;
params.mesh.optimizeIndexBuffers = false;
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->GetSkin() == 0);

View File

@ -18,6 +18,8 @@ SCENARIO("TCP", "[NETWORK][TCP]")
Nz::UInt16 port = dis(gen);
Nz::TcpServer server;
server.EnableBlocking(false);
REQUIRE(server.Listen(Nz::NetProtocol_IPv4, port) == Nz::SocketState_Bound);
Nz::IpAddress serverIP = server.GetBoundAddress();
REQUIRE(serverIP.IsValid());