fix stream tests

pull/4465/head
“GheisMohammadi” 1 year ago
parent 917a3019e2
commit 7c21eef5ef
No known key found for this signature in database
GPG Key ID: 15073AED3829FE90
  1. 6
      p2p/stream/protocols/sync/stream_test.go

@ -51,14 +51,14 @@ var (
testGetReceiptsRequest = syncpb.MakeGetReceiptsRequest(testGetReceipts)
testGetReceiptsRequestMsg = syncpb.MakeMessageFromRequest(testGetReceiptsRequest)
testGetNodes = []common.Hash{
testGetNodeData = []common.Hash{
numberToHash(1),
numberToHash(2),
numberToHash(3),
numberToHash(4),
numberToHash(5),
}
testGetNodeDataRequest = syncpb.MakeGetNodeDataRequest(testGetNodes)
testGetNodeDataRequest = syncpb.MakeGetNodeDataRequest(testGetNodeData)
testGetNodeDataRequestMsg = syncpb.MakeMessageFromRequest(testGetNodeDataRequest)
maxBytes = uint64(500)
@ -312,7 +312,7 @@ func TestSyncStream_HandleGetNodeData(t *testing.T) {
time.Sleep(200 * time.Millisecond)
receivedBytes, _ := remoteSt.ReadBytes()
if err := checkGetNodeDataResult(receivedBytes, testGetBlockByHashes); err != nil {
if err := checkGetNodeDataResult(receivedBytes, testGetNodeData); err != nil {
t.Fatal(err)
}
}

Loading…
Cancel
Save