From 39765c1d92a6b6c68385aa886c60bf8605322fde Mon Sep 17 00:00:00 2001 From: sivaratrisrinivas Date: Wed, 12 Mar 2025 04:12:56 -0500 Subject: [PATCH] cmd/geth: Fix type mismatches in dbcmd_test.go between uint64 and int --- cmd/geth/dbcmd_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/geth/dbcmd_test.go b/cmd/geth/dbcmd_test.go index b9d75f8f30..defded5aed 100644 --- a/cmd/geth/dbcmd_test.go +++ b/cmd/geth/dbcmd_test.go @@ -180,15 +180,15 @@ func TestTruncateFreezerBatching(t *testing.T) { // or the number of items in the original freezer, whichever is smaller expectedCount := mergeBlock if ancients < mergeBlock { - expectedCount = ancients + expectedCount = int(ancients) } - if headersFreezerAncients != expectedCount { + if int(headersFreezerAncients) != expectedCount { t.Fatalf("Expected %d items in headers freezer, got %d", expectedCount, headersFreezerAncients) } // Verify that the headers in the temporary freezer match the originals - for i := uint64(0); i < expectedCount; i++ { + for i := uint64(0); i < uint64(expectedCount); i++ { // Read from original freezer originalHeader, err := ancientDb.Ancient(rawdb.ChainFreezerHeaderTable, i) if err != nil {