spec: Only test net.connect on Mac

The Linux travis ci machine is quite unstable on this test.