Skip to content

Commit b468f0e

Browse files
committed
[LLDB] Fix sync issue in TestVSCode_launch.test_progress_events
This fixes flakiness in TestVSCode_launch.test_progress_events vscode.progress_events some times failed to populate in time for follow up iterations. Adding a minor delay before the the for the loop fixes the issue. Reviewed By: clayborg Differential Revision: https://reviews.llvm.org/D99497
1 parent dd2a63e commit b468f0e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/test/API/tools/lldb-vscode/launch/TestVSCode_launch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,6 @@ def test_terminate_commands(self):
454454

455455
@skipIfWindows
456456
@skipIfRemote
457-
@skipIf(oslist=["linux"])
458457
def test_progress_events(self):
459458
'''
460459
Tests the progress events to ensure we are receiving them.
@@ -486,6 +485,8 @@ def test_progress_events(self):
486485
# Iterate over all progress events and save all start and end IDs, and
487486
# remember any shared libraries that got symbol table parsing progress
488487
# events.
488+
# Sleep for 2 seconds to make sure progress_events gets populated
489+
time.sleep(2)
489490
for progress_event in self.vscode.progress_events:
490491
event_type = progress_event['event']
491492
if event_type == 'progressStart':

0 commit comments

Comments
 (0)