Skip to content
Snippets Groups Projects
Commit 47aedbd2 authored by Carsten Patzke's avatar Carsten Patzke
Browse files

Fixed some tests

parent 04d6d83b
No related branches found
No related tags found
No related merge requests found
......@@ -33,8 +33,9 @@ void ServerChildThread(FabricServer* server, std::atomic<int>* serverTotalReques
// In order to run the tests more stable. Otherwise a timeout could occurred with valgrind
int tries = 0;
do {
err = nullptr;
server->RecvAny(&clientAddress, &messageId, &request, sizeof(request), &err);
} while (err == IOErrorTemplates::kTimeout && tries++ < 2);
} while (err == IOErrorTemplates::kTimeout && tries++ < 4);
M_AssertEq(nullptr, err, "server->RecvAny");
M_AssertEq("Hello World", request.message);
M_AssertEq(messageId / kEachInstanceRuns, request.data_id); // is client index
......
......@@ -38,6 +38,7 @@ void ServerMasterThread(const std::string& hostname, uint16_t port, char* expect
// In order to run the tests more stable. Otherwise a timeout could occurred with valgrind
int tries = 0;
do {
err = nullptr;
server->RecvAny(&clientAddress, &messageId, &request, sizeof(request), &err);
} while (err == IOErrorTemplates::kTimeout && tries++ < 2);
M_AssertEq(nullptr, err, "server->RecvAny");
......
......@@ -33,6 +33,7 @@ void ServerMasterThread(const std::string& hostname, uint16_t port) {
// In order to run the tests more stable. Otherwise a timeout could occurred with valgrind
int tries = 0;
do {
err = nullptr;
server->RecvAny(&clientAddress, &messageId, &dummyBuffer, sizeof(dummyBuffer), &err);
} while (err == IOErrorTemplates::kTimeout && tries++ < 2);
M_AssertEq(nullptr, err, "server->RecvAny");
......
......@@ -49,6 +49,7 @@ void ServerMasterThread(const std::string& hostname, uint16_t port) {
// Simulate correct memory details
int tries = 0;
do {
err = nullptr;
server->RecvAny(&clientAddress, &messageId, &request, sizeof(request), &err);
} while (err == IOErrorTemplates::kTimeout && tries++ < 2);
M_AssertEq(nullptr, err, "server->RecvAny(2)");
......@@ -62,6 +63,7 @@ void ServerMasterThread(const std::string& hostname, uint16_t port) {
GenericRequestHeader request2{};
tries = 0;
do {
err = nullptr;
server->RecvAny(&clientAddress, &messageId, &request2, sizeof(request2), &err);
} while (err == IOErrorTemplates::kTimeout && tries++ < 2);
M_AssertEq(nullptr, err, "server->RecvAny(3)");
......
......@@ -149,7 +149,7 @@ def check_single(broker,group_id_new):
else:
exit_on_noerr("wrong query")
broker = asapo_consumer.create_server_broker("bla",path, True, beamtime,"",token,1000)
broker = asapo_consumer.create_server_broker("bla",path, True, beamtime,"",token,1000,network_type)
try:
broker.get_last(group_id_new, meta_only=True)
except asapo_consumer.AsapoUnavailableServiceError as err:
......
......@@ -62,7 +62,7 @@ nomad run authorizer.nmd
nomad run discovery.nmd
nomad run receiver_$7.nmd
if ["$4" = "receiver"]; then
if [[ "$4" == "receiver" ]]; then
nomad run $4_$7.nmd
else
nomad run $4.nmd
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment