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

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)