Fix CellularDevice::shutdown UT

As shutdown was overridden in test class, original shutdown() method
was not called at all.
pull/11495/head
Kimmo Vaisanen 2019-09-16 16:00:02 +03:00
parent b6ecce0bfb
commit ce3d41433e
1 changed files with 1 additions and 6 deletions

View File

@ -35,7 +35,7 @@ class FileHandle;
class myCellularDevice : public CellularDevice { class myCellularDevice : public CellularDevice {
public: public:
myCellularDevice(FileHandle *fh) : CellularDevice(fh), _context_list(0), _network(0) {} myCellularDevice(FileHandle *fh) : CellularDevice(fh), _context_list(0), _network(0) {}
~myCellularDevice() virtual ~myCellularDevice()
{ {
delete _context_list; delete _context_list;
delete _network; delete _network;
@ -125,11 +125,6 @@ public:
return NSAPI_ERROR_OK; return NSAPI_ERROR_OK;
} }
virtual nsapi_error_t shutdown()
{
return NSAPI_ERROR_OK;
}
virtual nsapi_error_t is_ready() virtual nsapi_error_t is_ready()
{ {
return NSAPI_ERROR_OK; return NSAPI_ERROR_OK;