diff --git a/hueplusplus/test/test_Hue.cpp b/hueplusplus/test/test_Hue.cpp index f6463e9..275f967 100644 --- a/hueplusplus/test/test_Hue.cpp +++ b/hueplusplus/test/test_Hue.cpp @@ -17,9 +17,9 @@ protected: std::shared_ptr handler; protected: HueFinderTest() + : handler(std::make_shared()) { using namespace ::testing; - handler = std::make_shared(); EXPECT_CALL(*handler, sendMulticast("M-SEARCH * HTTP/1.1\r\nHOST: 239.255.255.250:1900\r\nMAN: \"ssdp:discover\"\r\nMX: 5\r\nST: ssdp:all\r\n\r\n", "239.255.255.250", 1900, 5)) .Times(AtLeast(1))