Skip to content

Commit d82713a

Browse files
committed
fix bg96 test clean cloud file
1 parent 62600d1 commit d82713a

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Hologram/CustomCloud.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,7 @@ def _enforce_minimum_periodic_interval(self, interval):
379379
raise HologramError('Interval cannot be less than %d seconds.' % MIN_PERIODIC_INTERVAL)
380380

381381
def __enforce_network_disconnected(self):
382-
if self.network_type == 'Cellular':
383-
self.network.disconnect()
382+
self.network.disconnect()
384383

385384
def getResultString(self, result_code):
386385
return str(result_code)

tests/Modem/Quectel/test_BG96.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_init_bg96_no_args(no_serial_port):
4848
assert(modem.timeout == 1)
4949
assert(modem.socket_identifier == 0)
5050
assert(modem.chatscript_file.endswith('/chatscripts/default-script'))
51-
assert(modem._at_sockets_available == False)
51+
assert(modem._at_sockets_available == True)
5252

5353
def test_init_bg96_chatscriptfileoverride(no_serial_port):
5454
modem = BG96(chatscript_file='test-chatscript')

0 commit comments

Comments
 (0)