Fixed a racy test that relied on connection-affinity to threads