Skip to content

Commit 367bae6

Browse files
author
Antti Kauppila
authored
Fixed crashing nsapi_dns unittest
Added missing "return" for NetworkStackMock's get_stack() method
1 parent a1cddba commit 367bae6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UNITTESTS/features/netsocket/nsapi_dns/test_nsapi_dns.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class NetworkInterfaceMock: public NetworkInterface {
141141
public:
142142
NetworkStack *get_stack()
143143
{
144-
NetworkStackMock::get_instance();
144+
return &NetworkStackMock::get_instance();
145145
}
146146
MOCK_METHOD0(set_default_parameters, void());
147147
};

0 commit comments

Comments
 (0)