test: fix coverity warning in test

Fix uninitialized pointer field warning in test

Signed-off-by: Michael Dawson <mdawson@devrus.com>

PR-URL: https://github.com/nodejs/node/pull/43631
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Michael Dawson 2022-06-30 10:41:36 -04:00
parent a6e3d3b52b
commit 98ade2d1bb

View File

@ -301,11 +301,11 @@ class ServerHolder {
class TestSocketServerDelegate : public SocketServerDelegate {
public:
explicit TestSocketServerDelegate(
ServerHolder* server,
const std::vector<std::string>& target_ids)
explicit TestSocketServerDelegate(ServerHolder* server,
const std::vector<std::string>& target_ids)
: harness_(server),
targets_(target_ids),
server_(nullptr),
session_id_(0) {}
~TestSocketServerDelegate() override {