DDF-674 - updated assertions to check for SocketException due to platform differences