Websocket unit tests (#334)

This commit is contained in:
Jure Bajic
2022-02-03 13:37:55 +01:00
committed by Antonio Andelic
parent 06e6ead4d2
commit bd2c30fddc
10 changed files with 343 additions and 16 deletions

View File

@@ -1215,8 +1215,8 @@ int main(int argc, char **argv) {
[]() -> nlohmann::json { return query::plan::CallProcedure::GetAndResetCounters(); });
}
communication::websocket::Server websocket_server{
{"0.0.0.0", 7444}, &context, communication::websocket::SafeAuth{&auth}};
communication::websocket::SafeAuth websocket_auth{&auth};
communication::websocket::Server websocket_server{{"0.0.0.0", 7444}, &context, websocket_auth};
AddLoggerSink(websocket_server.GetLoggingSink());
// Handler for regular termination signals