Skip to content

Commit e850f81

Browse files
committed
test: Updates the unit test to check for the updated error message
Signed-off-by: Justin Blagden <jblagden@users.noreply.github.com>
1 parent 6f9a6ef commit e850f81

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/openjd/adaptor_runtime/process/_logging_subprocess.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def __init__(
8181
# If we didn't find the executable found by which
8282
if exe_path is not None:
8383
raise FileNotFoundError(
84-
f"Could not find adaptor executable at: {exe_path} using alias {executable}\n"
84+
f"Could not find executable at: {exe_path} using alias {executable}\n"
8585
f"Error:{fnf_error}"
8686
)
8787

‎test/openjd/adaptor_runtime/integ/process/test_integration_logging_subprocess.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def test_executable_not_found(self):
156156
args = ["missing_executable"]
157157
with pytest.raises(FileNotFoundError) as exc_info:
158158
LoggingSubprocess(args=args)
159-
assert "Could not find the executable associated with the adaptor" in str(exc_info.value)
159+
assert "Could not find the specified command" in str(exc_info.value)
160160

161161

162162
class TestIntegrationRegexHandler(object):

0 commit comments

Comments
 (0)