Skip to content

Instantly share code, notes, and snippets.

@indradhanush
Last active November 22, 2015 14:47
Show Gist options
  • Save indradhanush/bc958520939ba8ef9ddc to your computer and use it in GitHub Desktop.
Save indradhanush/bc958520939ba8ef9ddc to your computer and use it in GitHub Desktop.
Weird output for Pull sock.
// Run 1
dhanush@Indradhanushs-MacBook-Pro:~/golang/src/github.com/zeromq/gogozmq$ go test -v -run TestPullSockSingleConnection
=== RUN TestPullSockSingleConnection
got incoming &{{0xc8200bc000}}
--- PASS: TestPullSockSingleConnection (0.00s)
sock_test.go:46: new pull
sock_test.go:54: new push
sock_test.go:60: push hello
read bytes: 7
PASS
[0 5 72 101 108 108 111]
ok github.com/zeromq/gogozmq 0.016s
// Run 2
dhanush@Indradhanushs-MacBook-Pro:~/golang/src/github.com/zeromq/gogozmq$ go test -v -run TestPullSockSingleConnection
=== RUN TestPullSockSingleConnection
got incoming &{{0xc82009e000}}
--- PASS: TestPullSockSingleConnection (0.00s)
sock_test.go:46: new pull
sock_test.go:54: new push
sock_test.go:60: push hello
PASS
ok github.com/zeromq/gogozmq 0.018s
dhanush@Indradhanushs-MacBook-Pro:~/golang/src/github.com/zeromq/gogozmq$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment