فهرست منبع

*: fix TestTransportErrorc

CI can be slow. We should just wait longer.
Xiang Li 9 سال پیش
والد
کامیت
4d0f474034
1فایلهای تغییر یافته به همراه1 افزوده شده و 2 حذف شده
  1. 1 2
      rafthttp/transport_test.go

+ 1 - 2
rafthttp/transport_test.go

@@ -146,10 +146,9 @@ func TestTransportErrorc(t *testing.T) {
 	}
 	tr.peers[1].send(raftpb.Message{})
 
-	testutil.WaitSchedule()
 	select {
 	case <-errorc:
-	default:
+	case <-time.After(1 * time.Second):
 		t.Fatalf("cannot receive error from errorc")
 	}
 }