Skip to content

Commit f896f30

Browse files
author
Piyush Jaiswal
committed
Bug Fix
1 parent c40952c commit f896f30

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lldb/test/API/tools/lldb-dap/attach/TestDAP_attach.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,18 +239,17 @@ def test_session_id_update(self):
239239
)
240240

241241
postRunCommands = [
242-
"script print('Actual_Session_ID: ' + str(os.getenv('VSCODE_DEBUG_SESSION_ID')))"
242+
"script print('Actual_Session_ID: ' + str(os.getenv('VSCODE_DEBUG_SESSION_ID', 'None')))"
243243
]
244244
self.attach(
245245
pid=self.process.pid,
246-
vscode_session_id="test_session_id",
247246
postRunCommands=postRunCommands,
248247
)
249248
output = self.get_console()
250249
lines = filter(lambda x: "Actual_Session_ID" in x, output.splitlines())
251250
self.assertTrue(
252-
any("test_session_id" in l for l in lines),
253-
"expect session id in console output",
251+
any("Actual_Session_ID: None" in l for l in lines),
252+
"expect session id to be None when not set",
254253
)
255254

256255
def test_session_id_update_empty(self):

0 commit comments

Comments
 (0)