Skip to content

Commit 3db32b8

Browse files
committed
Adding patch to mbed-ls test for reliability
1 parent b2b7b3a commit 3db32b8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

legacy/mbed-ls/test/platform_database.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ def test_broken_database_bad_json(self):
7070
def test_broken_database(self):
7171
"""Verify that the platform database correctly reset's its database
7272
"""
73-
with patch("mbed_os_tools.detect.platform_database.open") as _open:
73+
with patch("mbed_os_tools.detect.platform_database.open") as _open,\
74+
patch("mbed_os_tools.detect.platform_database._older_than_me") as _older:
75+
_older.return_value = False
7476
stringio = MagicMock()
7577
_open.side_effect = (IOError("Bogus"), stringio)
7678
self.pdb = PlatformDatabase([LOCAL_PLATFORM_DATABASE])

0 commit comments

Comments
 (0)