Skip to content

Commit

Permalink
Fixed test for linux
Browse files Browse the repository at this point in the history
  • Loading branch information
oxtoacart committed Dec 17, 2014
1 parent 7370724 commit 6dd823d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions waddell_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ func doTestPeers(t *testing.T, useTLS bool) {
for _, action := range closeActions {
action()
}
// Wait a short time to let sockets finish closing
time.Sleep(250 * time.Millisecond)
socketsAtEnd := countTCPFiles()
assert.Equal(t, socketsAtStart, socketsAtEnd, "All file descriptors should have been closed")

Expand Down

0 comments on commit 6dd823d

Please sign in to comment.