This commit is contained in:
cui 2026-06-18 23:07:07 +00:00 committed by GitHub
commit 6c26d26441
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -423,7 +423,7 @@ func (s *Suite) TestGetBlockBodies(t *utesting.T) {
t.Fatalf("error reading block bodies msg: %v", err)
}
if got, want := resp.RequestId, req.RequestId; got != want {
t.Fatalf("unexpected request id in respond", got, want)
t.Fatalf("unexpected request id in response: got %d, want %d", got, want)
}
if resp.List.Len() != len(req.GetBlockBodiesRequest) {
t.Fatalf("wrong bodies in response: expected %d bodies, got %d", len(req.GetBlockBodiesRequest), resp.List.Len())