Fix integration tests for Windows native

This commit is contained in:
Jakob Borg
2014-12-08 22:15:10 +01:00
parent c96c78892d
commit d2c0b8374a
3 changed files with 38 additions and 5 deletions

View File

@@ -81,7 +81,8 @@ func testRestartDuringTransfer(t *testing.T, restartSender, restartReceiver bool
for {
comp, err := sender.peerCompletion()
if err != nil {
if strings.Contains(err.Error(), "use of closed network connection") {
if strings.Contains(err.Error(), "use of closed network connection") ||
strings.Contains(err.Error(), "request cancelled while waiting") {
time.Sleep(250 * time.Millisecond)
continue
}