Update shopfront_test.go

This commit is contained in:
Daniil Grybchuk 2022-04-12 19:25:19 +00:00 committed by Arseny Balobanov
parent 58185a6339
commit 30072f9d6f

View file

@ -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) {