Skip to content

Commit 7284b5c

Browse files
committed
setAffinity in test
1 parent bf41769 commit 7284b5c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

aio_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ func echoServer(t testing.TB, bufsize int) net.Listener {
6565
t.Fatal(err)
6666
}
6767

68+
w.SetPollerAffinity(0)
69+
w.SetPollerAffinity(1)
70+
6871
// ping-pong scheme echo server
6972
wbuf := make([]byte, bufsize)
7073
rbuf := make([]byte, bufsize)

0 commit comments

Comments
 (0)