Skip to content

Commit 5ad9d27

Browse files
authored
Improve error message in removeFile test. Close #1851 (#1852)
1 parent a8db90f commit 5ad9d27

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/integration/InteractiveCompute.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ describe('InteractiveCompute', function() {
4747
try {
4848
await session.addFile('test.txt', 'hello world');
4949
await session.removeFile('test.txt');
50-
const {stdout} = await session.exec('cat test.txt');
51-
assert(false);
50+
await session.exec('cat test.txt');
51+
assert(false, new Error('Expected file to be deleted.'));
5252
} catch (err) {
53+
assert(err.jobResult, err);
5354
assert(err.jobResult.stderr.includes('No such file'));
5455
}
5556
});

0 commit comments

Comments
 (0)