test: fix port forwarding tests in Docker

This commit is contained in:
Max Schmitt 2021-09-03 12:53:21 +02:00
parent cf8e3b087f
commit 31c76a086d

View File

@ -146,5 +146,5 @@ it('should lead to the error page for forwarded requests when the connection is
else if (browserName === 'webkit')
expect(error.message).toBeTruthy();
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);
});