Skip to content

Commit

Permalink
setAffinity in test
Browse files Browse the repository at this point in the history
  • Loading branch information
xtaci committed Jul 31, 2024
1 parent bf41769 commit 7284b5c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aio_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ func echoServer(t testing.TB, bufsize int) net.Listener {
t.Fatal(err)
}

w.SetPollerAffinity(0)
w.SetPollerAffinity(1)

// ping-pong scheme echo server
wbuf := make([]byte, bufsize)
rbuf := make([]byte, bufsize)
Expand Down

0 comments on commit 7284b5c

Please sign in to comment.