File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -333,7 +333,8 @@ async def test_gssapi_host_name(self):
333
333
334
334
def test_canonicalize_host_name (self ):
335
335
result = _canonicalize_hostname (GSSAPI_HOST , "forward" )
336
- self .assertIn ("compute-1.amazonaws.com" , result )
336
+ if "compute-1.amazonaws.com" not in result :
337
+ self .assertEqual (result , GSSAPI_HOST )
337
338
result = _canonicalize_hostname (GSSAPI_HOST , "forwardAndReverse" )
338
339
self .assertEqual (result , GSSAPI_HOST )
339
340
Original file line number Diff line number Diff line change @@ -333,7 +333,8 @@ def test_gssapi_host_name(self):
333
333
334
334
def test_canonicalize_host_name (self ):
335
335
result = _canonicalize_hostname (GSSAPI_HOST , "forward" )
336
- self .assertIn ("compute-1.amazonaws.com" , result )
336
+ if "compute-1.amazonaws.com" not in result :
337
+ self .assertEqual (result , GSSAPI_HOST )
337
338
result = _canonicalize_hostname (GSSAPI_HOST , "forwardAndReverse" )
338
339
self .assertEqual (result , GSSAPI_HOST )
339
340
You can’t perform that action at this time.
0 commit comments