         let s2      = try context.socket(.pair)
         try s2.connect(endpoint)
 
+        // Wait a bit to allow the sockets to connect
+        usleep(250)
+
         // Register pair sockets in a new poller object
         let poller  = SwiftyZeroMQ.Poller()
         try poller.register(socket: s1, flags: [.pollIn, .pollOut])

        let requestor  = try context.socket(.request)
        try requestor.connect(endpoint)

        // Register requester and replier sockets in a new poller object
        let poller = SwiftyZeroMQ.Poller()
        try poller.register(socket: replier,   flags: [.pollIn, .pollOut])

        try s2.send(string: "msg2")

        // After a wait, both should be [.pollout, .pollIn]
        usleep(500)
        socks = try poller.poll()
        XCTAssertEqual(socks[s1], [SwiftyZeroMQ.PollFlags.pollOut, SwiftyZeroMQ.PollFlags.pollIn])
        XCTAssertEqual(socks[s2], [SwiftyZeroMQ.PollFlags.pollOut, SwiftyZeroMQ.PollFlags.pollIn])
