From e60974955d962af75c927cb100b528b154f68340 Mon Sep 17 00:00:00 2001 From: Sina Mahmoodi Date: Thu, 7 May 2026 19:16:06 +0000 Subject: [PATCH] minor --- internal/era/execdb/era_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/era/execdb/era_test.go b/internal/era/execdb/era_test.go index 7ae7464dad..1b78b61541 100644 --- a/internal/era/execdb/era_test.go +++ b/internal/era/execdb/era_test.go @@ -446,20 +446,20 @@ func TestDetectLayoutNoReceipts(t *testing.T) { t.Fatalf("From: %v", err) } defer e.Close() - era := e.(*Era) + ere := e.(*Era) - if era.HasComponent(receipts) { + if ere.HasComponent(receipts) { t.Errorf("receipts should not be reported as present in synthetic noreceipts file") } - if !era.HasComponent(td) { + if !ere.HasComponent(td) { t.Errorf("td should be reported as present") } - if got, want := era.m.layout[td], 2; got != want { + if got, want := ere.m.layout[td], 2; got != want { t.Errorf("td slot: want %d, got %d", want, got) } // Reading receipts must fail loudly, not silently decode TD bytes. - if _, err := era.GetRawReceiptsByNumber(0); err == nil { + if _, err := ere.GetRawReceiptsByNumber(0); err == nil { t.Error("expected error when reading receipts from a noreceipts file") } }