1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #3922 from node-red/fix-httpreq-tests

Fix httprequest tests to be more lenient on error message
This commit is contained in:
Nick O'Leary 2022-10-26 00:40:47 +01:00 committed by GitHub
commit 946def022f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)