Skip to content

Commit c839bfb

Browse files
committed
test: fix a flaky test case of TestShutdown
Fixes #477
1 parent eca1d0c commit c839bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gnet_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ func (t *testShutdownServer) OnTick() (delay time.Duration, action Action) {
616616
}
617617

618618
func testShutdown(t *testing.T, network, addr string) {
619-
events := &testShutdownServer{tester: t, network: network, addr: addr, N: 256}
619+
events := &testShutdownServer{tester: t, network: network, addr: addr, N: 100}
620620
err := Run(events, network+"://"+addr, WithTicker(true), WithReadBufferCap(512), WithWriteBufferCap(512))
621621
assert.NoError(t, err)
622622
require.Equal(t, 0, int(events.clients), "did not close all clients")

0 commit comments

Comments
 (0)