8000 test: adjusted regexp for stacktrace for newer versions of Node.js · log4js-node/logstashHTTP@b1059f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit b1059f2

Browse files
committed
test: adjusted regexp for stacktrace for newer versions of Node.js
1 parent 95b7948 commit b1059f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/tap/index-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ test('logstashappender', (batch) => {
140140
const eventBody = JSON.parse(packet[1]);
141141

142142
t.match(eventBody.message, /Log event #1 Error: something happened/);
143-
t.match(eventBody.message, /at Test.batch.test/);
143+
t.match(eventBody.message, /at (Test.batch.test|Test.<anonymous>)/);
144144
t.end();
145145
});
146146

0 commit comments

Comments
 (0)
0