UnitTests: Fix blocking case
Former-commit-id: b504a619172a7c4c57d07d168fe4ae33bbd98210 [formerly 054c9b2c1261c438b74722be9f345417e64f3611] Former-commit-id: 498b99790dc187ace705a57cd9fdcec43ac1345d
This commit is contained in:
parent
5d6cee8291
commit
3a50c1e553
|
|
@ -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