فهرست منبع

Fix: don't fail tests on temporary disruptor errors

Rod Hynes 8 سال پیش
والد
کامیت
1a84fdcefe
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      psiphon/remoteServerList_test.go

+ 4 - 0
psiphon/remoteServerList_test.go

@@ -321,6 +321,10 @@ func testObfuscatedRemoteServerLists(t *testing.T, omitMD5Sums bool) {
 		for {
 			localConn, err := listener.AcceptSocks()
 			if err != nil {
+				if e, ok := err.(net.Error); ok && e.Temporary() {
+					fmt.Printf("disruptor proxy temporary accept error: %s", err)
+					continue
+				}
 				fmt.Printf("disruptor proxy accept error: %s\n", err)
 				return
 			}