Fix httprequest tests to be more lenient on error message

This commit is contained in:
Nick O'Leary 2022-10-16 23:10:57 +01:00
parent 32999ffa84
commit c62a101635
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 5 additions and 5 deletions

View File

@ -2322,7 +2322,7 @@ describe('HTTP Request Node', function() {
var n2 = helper.getNode("n2");
n2.on('input', function(msg) {
try{
msg.payload.should.equal(`RequestError: Parse Error: Missing expected CR after header value : http://localhost:${port}/`)
msg.payload.should.match(/RequestError: Parse Error/)
done()
} catch (err) {
done(err)