NIFI-7898 Fixed unit test which failed with simultaneous services running on localhost:80.

This commit is contained in:
Andy LoPresto 2020-10-07 15:08:55 -07:00 committed by markap14
parent 668c278e30
commit 82d3fd6cd6
1 changed files with 2 additions and 2 deletions

View File

@ -429,13 +429,13 @@ class StandardOidcIdentityProviderGroovyTest extends GroovyTestCase {
logger.info("OIDC Token Response: ${mockResponse.dump()}")
// Act
def msg = shouldFail(ConnectException) {
def msg = shouldFail {
String nifiToken = soip.convertOIDCTokenToNiFiToken(mockResponse)
logger.info("NiFi token: ${nifiToken}")
}
// Assert
assert msg =~ "Connection refused"
assert msg =~ "Connection refused|Remote host terminated the handshake"
}
@Test