mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-08-06 13:22:24 +02:00
tcp: Variable size array (#1492)
Build and Deploy on local RHEL9 / build (push) Successful in 2m4s
Build on RHEL9 docker image / build (push) Successful in 3m57s
Build on RHEL8 docker image / build (push) Successful in 5m6s
Build and Deploy on local RHEL8 / build (push) Successful in 5m9s
Run Simulator Tests on local RHEL9 / build (push) Successful in 20m7s
Run Simulator Tests on local RHEL8 / build (push) Successful in 23m40s
Build and Deploy on local RHEL9 / build (push) Successful in 2m4s
Build on RHEL9 docker image / build (push) Successful in 3m57s
Build on RHEL8 docker image / build (push) Successful in 5m6s
Build and Deploy on local RHEL8 / build (push) Successful in 5m9s
Run Simulator Tests on local RHEL9 / build (push) Successful in 20m7s
Run Simulator Tests on local RHEL8 / build (push) Successful in 23m40s
* templated variable vector size (sending/receive size before vector) in ClientSocket and Module:SendToReceiverVarVector * fix warnign * Another tcp function ironed out but for Detector * wip * fix * wip * wip * wip * wip * fix for execccomand * typo --------- Co-authored-by: AliceMazzoleni99 <alice.mazzoleni@psi.ch>
This commit is contained in:
@@ -231,14 +231,13 @@ TEST_CASE("Using DetectorSocket to talk to a Server Socket", "[support]") {
|
||||
|
||||
auto client = DetectorSocket("localhost", port);
|
||||
int retval = 0;
|
||||
int ret = client.sendCommandThenRead(fnum, &arg, sizeof(arg), &retval,
|
||||
sizeof(retval));
|
||||
CHECK_NOTHROW(client.sendCommandThenRead(fnum, &arg, sizeof(arg), &retval,
|
||||
sizeof(retval)));
|
||||
client.close();
|
||||
|
||||
auto server_received = s.get();
|
||||
|
||||
// Client got OK and the expected return value back from the server
|
||||
CHECK(ret == slsDetectorDefs::OK);
|
||||
CHECK(retval == arg * 2);
|
||||
// Server received the function number and argument we sent
|
||||
CHECK(server_received.first == fnum);
|
||||
|
||||
Reference in New Issue
Block a user