Skip to content

Commit 26c2bdc

Browse files
committed
add precondition message
1 parent 7ee694a commit 26c2bdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration/node-specific/resource_tracking_script_builder.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,8 @@ export async function runScriptAndGetProcessInfo(
209209
// assertions about exit status
210210
if (exitCode) {
211211
const { error } = messages.find(m => m.error != null);
212-
expect(error).to.exist;
212+
expect(error, 'test script exited with non-zero exit code but did not report an error.').to
213+
.exist;
213214
const assertionError = new AssertionError(
214215
error.message + '\n\t' + JSON.stringify(error.resources, undefined, 2)
215216
);

0 commit comments

Comments
 (0)