Skip to content

Commit 7a70dce

Browse files
Trotttargos
authored andcommitted
test: fix test-trace-events-dns
Test is using `common.fileExists()` which has been removed. There is no need to check that the file exists as the attempt to read the file in the next line will fail if the file does not exist. Remove existence check. PR-URL: #22674 Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent a448c8b commit 7a70dce

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

test/internet/test-trace-events-dns.js

-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ for (const tr in tests) {
5353

5454
const file = path.join(tmpdir.path, traceFile);
5555

56-
// Confirm that trace log file is created.
57-
assert(common.fileExists(file));
5856
const data = fs.readFileSync(file);
5957
const traces = JSON.parse(data.toString()).traceEvents
6058
.filter((trace) => trace.cat !== '__metadata');

0 commit comments

Comments
 (0)