Commit 4ba23a77 authored by Steven Allen's avatar Steven Allen Committed by GitHub

Merge pull request #25 from libp2p/gx/publish-1.7.0

Release 1.7.0
parents f6ab6169 43577e96
1.6.18: QmaijwHnbD4SabGA8C2fN9gchptLvRe2RxqTU5XkjAGBw5 1.7.0: QmSx9mhEnKWDkgBYaEY6MZFFajUtiQJ8bipSZhzPuALSPv
...@@ -6,7 +6,7 @@ os: ...@@ -6,7 +6,7 @@ os:
language: go language: go
go: go:
- 1.7 - 1.8
install: true install: true
......
...@@ -69,9 +69,9 @@ ...@@ -69,9 +69,9 @@
}, },
{ {
"author": "whyrusleeping", "author": "whyrusleeping",
"hash": "Qma887khroMXGLJuHLYqqDZXHivAfFPxd2hQ8Z5kucMWTM", "hash": "QmVNPgPmEG4QKaDKkxMPKY34Z53n8efzv1sEh4NTsdhto7",
"name": "go-peerstream", "name": "go-peerstream",
"version": "1.6.2" "version": "1.7.0"
}, },
{ {
"author": "whyrusleeping", "author": "whyrusleeping",
...@@ -81,9 +81,9 @@ ...@@ -81,9 +81,9 @@
}, },
{ {
"author": "whyrusleeping", "author": "whyrusleeping",
"hash": "QmaDBnCnmwPdqWGCJRLnmkfXRTEHp5rt3248Bwk4A7fLvt", "hash": "QmPqPjFBqpx5AEfWYDJqt8w8YhRgPn7jw52omCKrYue4B6",
"name": "go-libp2p-conn", "name": "go-libp2p-conn",
"version": "1.6.4" "version": "1.6.5"
}, },
{ {
"author": "whyrusleeping", "author": "whyrusleeping",
...@@ -117,9 +117,9 @@ ...@@ -117,9 +117,9 @@
}, },
{ {
"author": "whyrusleeping", "author": "whyrusleeping",
"hash": "QmR1fAHJvEyYFdEGn5jVmU4NL5kNSVJ48cduXB2whWbJq2", "hash": "Qmcx4KoZ91XS6izLjdkujAMAunAS1YuTgfgASgYaZF5GkR",
"name": "go-addr-util", "name": "go-addr-util",
"version": "1.1.7" "version": "1.2.0"
}, },
{ {
"hash": "QmSpJByNKFX1sCsHBEp3R73FL4NF6FnQTEGyNAXHm2GS52", "hash": "QmSpJByNKFX1sCsHBEp3R73FL4NF6FnQTEGyNAXHm2GS52",
...@@ -174,6 +174,6 @@ ...@@ -174,6 +174,6 @@
"license": "MIT", "license": "MIT",
"name": "go-libp2p-swarm", "name": "go-libp2p-swarm",
"releaseCmd": "git commit -a -m \"gx publish $VERSION\"", "releaseCmd": "git commit -a -m \"gx publish $VERSION\"",
"version": "1.6.18" "version": "1.7.0"
} }
...@@ -17,8 +17,10 @@ func streamsSame(a, b inet.Stream) bool { ...@@ -17,8 +17,10 @@ func streamsSame(a, b inet.Stream) bool {
} }
func TestNotifications(t *testing.T) { func TestNotifications(t *testing.T) {
const swarmSize = 5
ctx := context.Background() ctx := context.Background()
swarms := makeSwarms(ctx, t, 5) swarms := makeSwarms(ctx, t, swarmSize)
defer func() { defer func() {
for _, s := range swarms { for _, s := range swarms {
s.Close() s.Close()
...@@ -30,7 +32,7 @@ func TestNotifications(t *testing.T) { ...@@ -30,7 +32,7 @@ func TestNotifications(t *testing.T) {
// signup notifs // signup notifs
notifiees := make([]*netNotifiee, len(swarms)) notifiees := make([]*netNotifiee, len(swarms))
for i, swarm := range swarms { for i, swarm := range swarms {
n := newNetNotifiee() n := newNetNotifiee(swarmSize)
swarm.Notify(n) swarm.Notify(n)
notifiees[i] = n notifiees[i] = n
} }
...@@ -184,14 +186,14 @@ type netNotifiee struct { ...@@ -184,14 +186,14 @@ type netNotifiee struct {
closedStream chan inet.Stream closedStream chan inet.Stream
} }
func newNetNotifiee() *netNotifiee { func newNetNotifiee(buffer int) *netNotifiee {
return &netNotifiee{ return &netNotifiee{
listen: make(chan ma.Multiaddr), listen: make(chan ma.Multiaddr, buffer),
listenClose: make(chan ma.Multiaddr), listenClose: make(chan ma.Multiaddr, buffer),
connected: make(chan inet.Conn), connected: make(chan inet.Conn, buffer),
disconnected: make(chan inet.Conn), disconnected: make(chan inet.Conn, buffer),
openedStream: make(chan inet.Stream), openedStream: make(chan inet.Stream, buffer),
closedStream: make(chan inet.Stream), closedStream: make(chan inet.Stream, buffer),
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment