Skip to content

Commit 5e6cf7c

Browse files
committed
peer: Reduce number of simultaneous connections in TestMass
1 parent 94c424d commit 5e6cf7c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cmd/capiclient/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Example
2020
-------
2121

2222
```bash
23-
➜ ./bncsclient europe.battle.net
23+
➜ ./capiclient
2424
Enter API key:
2525
12:00:00 Succesfully connected to wss://connect-bot.classic.blizzard.com/v1/rpc/chat
2626
12:00:00 Joined channel 'Clan 1uk1'

network/peer/host_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ func TestMass(t *testing.T) {
164164
var chat int32
165165
var wg sync.WaitGroup
166166

167-
// test 12 * 11 / 2 = 56 simultaneous connections
168-
var hosts = makeHosts(t, 12)
167+
// test 10 * 9 / 2 = 45 simultaneous connections
168+
var hosts = makeHosts(t, 10)
169169
for i := 0; i < len(hosts); i++ {
170170
var h = hosts[i]
171171
if err := h.ListenAndServe(); err != nil {

0 commit comments

Comments
 (0)