From 173cee0b63153ffeb1b896bdef1d708081467d8f Mon Sep 17 00:00:00 2001 From: Martin Hutchinson Date: Mon, 9 Dec 2024 13:16:36 +0000 Subject: [PATCH] Use named method to increase readability --- storage/mysql/mysql_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/mysql/mysql_test.go b/storage/mysql/mysql_test.go index 72b8672e..60c0aae4 100644 --- a/storage/mysql/mysql_test.go +++ b/storage/mysql/mysql_test.go @@ -438,7 +438,7 @@ func TestEntryBundleRoundTrip(t *testing.T) { if err != nil { t.Errorf("Add got err: %v", err) } - entryBundleRaw, err := s.ReadEntryBundle(ctx, entryIndex/256, uint8(entryIndex+1%layout.EntryBundleWidth)) + entryBundleRaw, err := s.ReadEntryBundle(ctx, entryIndex/256, layout.PartialTileSize(0, entryIndex, entryIndex+1)) if err != nil { t.Fatalf("ReadEntryBundle got err: %v", err) }