test: fix port forwarding tests in Docker
This commit is contained in:
parent
cf8e3b087f
commit
31c76a086d
|
|
@ -146,5 +146,5 @@ it('should lead to the error page for forwarded requests when the connection is
|
||||||
else if (browserName === 'webkit')
|
else if (browserName === 'webkit')
|
||||||
expect(error.message).toBeTruthy();
|
expect(error.message).toBeTruthy();
|
||||||
else if (browserName === 'firefox')
|
else if (browserName === 'firefox')
|
||||||
expect(error.message).toContain('NS_ERROR_CONNECTION_REFUSED');
|
expect(error.message.includes('NS_ERROR_NET_RESET') || error.message.includes('NS_ERROR_CONNECTION_REFUSED')).toBe(true);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue