Skip to content

Commit ce3d414

Browse files
author
Kimmo Vaisanen
committed
Fix CellularDevice::shutdown UT
As shutdown was overridden in test class, original shutdown() method was not called at all.
1 parent b6ecce0 commit ce3d414

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

UNITTESTS/target_h/myCellularDevice.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class FileHandle;
3535
class myCellularDevice : public CellularDevice {
3636
public:
3737
myCellularDevice(FileHandle *fh) : CellularDevice(fh), _context_list(0), _network(0) {}
38-
~myCellularDevice()
38+
virtual ~myCellularDevice()
3939
{
4040
delete _context_list;
4141
delete _network;
@@ -125,11 +125,6 @@ class myCellularDevice : public CellularDevice {
125125
return NSAPI_ERROR_OK;
126126
}
127127

128-
virtual nsapi_error_t shutdown()
129-
{
130-
return NSAPI_ERROR_OK;
131-
}
132-
133128
virtual nsapi_error_t is_ready()
134129
{
135130
return NSAPI_ERROR_OK;

0 commit comments

Comments
 (0)