Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
squash: use string instread of a regexp
  • Loading branch information
danbev committed Sep 20, 2017
commit 2a76b64d3a700ff9178ba2be2457629b628ca99f
4 changes: 2 additions & 2 deletions test/parallel/test-dgram-socket-buffer-size.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ function checkBufferSizeError(type, size) {
const errorObj = {
code: 'ERR_SOCKET_BUFFER_SIZE',
type: Error,
message: new RegExp('^Could not get or set buffer' +
message: 'Could not get or set buffer' +
' size: Error: EINVAL: invalid argument,' +
' uv_' + type + '_buffer_size$')
' uv_' + type + '_buffer_size'
};
const functionName = 'set' + type.charAt(0).toUpperCase() +
type.slice(1) + 'BufferSize';
Expand Down