cmd/devp2p: swap want and got (#35125)

This commit is contained in:
cui 2026-06-09 01:06:16 +08:00 committed by GitHub
parent 0ee70187fd
commit 31d227ea83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -535,7 +535,7 @@ func (s *Suite) TestGetLargeReceipts(t *utesting.T) {
t.Fatalf("error reading block receipts msg: %v", err) t.Fatalf("error reading block receipts msg: %v", err)
} }
if got, want := resp.RequestId, req.RequestId; got != want { if got, want := resp.RequestId, req.RequestId; got != want {
t.Fatalf("unexpected request id in respond, want: %d, got: %d", got, want) t.Fatalf("unexpected request id in respond, want: %d, got: %d", want, got)
} }
receiptLists, _ := resp.List.Items() receiptLists, _ := resp.List.Items()