From 30072f9d6f1f3b24e76afe693a9de152fde82fa5 Mon Sep 17 00:00:00 2001 From: Daniil Grybchuk Date: Tue, 12 Apr 2022 19:25:19 +0000 Subject: [PATCH] Update shopfront_test.go --- shopfront/shopfront_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shopfront/shopfront_test.go b/shopfront/shopfront_test.go index c94b991..d6fd5dd 100644 --- a/shopfront/shopfront_test.go +++ b/shopfront/shopfront_test.go @@ -20,12 +20,12 @@ func TestShopfront(t *testing.T) { items, err := c.GetItems(ctx, []shopfront.ItemID{1, 2, 3, 4}, 42) require.NoError(t, err) - require.Equal(t, items, []shopfront.Item{ + require.Equal(t, []shopfront.Item{ {}, {}, {}, {}, - }) + }, items) require.NoError(t, c.RecordView(ctx, 3, 42)) require.NoError(t, c.RecordView(ctx, 2, 42)) @@ -34,12 +34,12 @@ func TestShopfront(t *testing.T) { items, err = c.GetItems(ctx, []shopfront.ItemID{1, 2, 3, 4}, 42) require.NoError(t, err) - require.Equal(t, items, []shopfront.Item{ + require.Equal(t, []shopfront.Item{ {}, {ViewCount: 2, Viewed: true}, {ViewCount: 1, Viewed: true}, {}, - }) + }, items) } func BenchmarkShopfront(b *testing.B) {