Skip to content

Commit

Permalink
test: FileDescriptorCastTest: Skip address check to work around AIX
Browse files Browse the repository at this point in the history
  • Loading branch information
kohlschuetter committed Feb 7, 2024
1 parent 58641a4 commit d7ed897
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,12 @@ public void testCastGeneric() throws Exception {
assertEquals(lsa, cr.remoteSocketAddress);
}
if (rsa != null) {
assertEquals(rsa, cr.localSocketAddress);
if (rsa.toBytes().length < 2 && !rsa.equals(cr.localSocketAddress)) {
// observed on AIX
// this is more or less equivalent to rsa == null
} else {
assertEquals(rsa, cr.localSocketAddress);
}
}
}
}
Expand Down Expand Up @@ -325,7 +330,12 @@ public void testCastGenericDuplicating() throws Exception {
assertEquals(lsa, cr.remoteSocketAddress);
}
if (rsa != null) {
assertEquals(rsa, cr.localSocketAddress);
if (rsa.toBytes().length < 2 && !rsa.equals(cr.localSocketAddress)) {
// observed on AIX
// this is more or less equivalent to rsa == null
} else {
assertEquals(rsa, cr.localSocketAddress);
}
}
}
} finally {
Expand Down

0 comments on commit d7ed897

Please sign in to comment.