Skip to content

Commit

Permalink
Add a test for #7
Browse files Browse the repository at this point in the history
  • Loading branch information
anacrolix committed Jan 3, 2019
1 parent 9fab60f commit 1e1d427
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions reuse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,9 @@ func TestDialFromListeningPort(t *testing.T) {
func TestDialFromListeningPortTcp6(t *testing.T) {
testDialFromListeningPort(t, "tcp6", "[::1]")
}

func TestListenPacketWildcardAddress(t *testing.T) {
pc, err := ListenPacket("udp", ":0")
require.NoError(t, err)
pc.Close()
}

0 comments on commit 1e1d427

Please sign in to comment.