Skip to content

Commit aa16be5

Browse files
committed
Correct Env name in the UI to be tested
1 parent 9f2332c commit aa16be5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

test/support/assertions.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module DEBUGGER__
44
module AssertionHelpers
55
def assert_line_num(expected)
6-
case ENV['RUBY_DEBUG_TEST_UI']
6+
case get_target_ui
77
when 'terminal'
88
@scenario.push(Proc.new { |test_info|
99
msg = "Expected line number to be #{expected.inspect}, but was #{test_info.internal_info['line']}\n"

test/support/protocol_test_case.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def assert_watch_result expected, expression, frame_idx: 0
280280
# Not API
281281

282282
def execute_dap_scenario scenario
283-
ENV['RUBY_DEBUG_TESTED_UI'] = 'vscode'
283+
ENV['RUBY_DEBUG_TEST_UI'] = 'vscode'
284284

285285
@remote_info = setup_unix_domain_socket_remote_debuggee
286286
Timeout.timeout(TIMEOUT_SEC) do
@@ -305,7 +305,7 @@ def execute_dap_scenario scenario
305305
end
306306

307307
def execute_cdp_scenario scenario
308-
ENV['RUBY_DEBUG_TESTED_UI'] = 'chrome'
308+
ENV['RUBY_DEBUG_TEST_UI'] = 'chrome'
309309

310310
@remote_info = setup_tcpip_remote_debuggee
311311
Timeout.timeout(TIMEOUT_SEC) do
@@ -590,7 +590,7 @@ def find_response key, target, direction
590590
end
591591

592592
def get_target_ui
593-
ENV['RUBY_DEBUG_TESTED_UI']
593+
ENV['RUBY_DEBUG_TEST_UI']
594594
end
595595

596596
# FIXME: Commonalize this method.

0 commit comments

Comments
 (0)