From 3233755282f50705586a9c489a5bc12a690a3f3a Mon Sep 17 00:00:00 2001 From: Jennifer Wang Date: Thu, 3 Feb 2022 14:40:37 -0500 Subject: [PATCH] remove ctx --- blockstore/autobatch_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/blockstore/autobatch_test.go b/blockstore/autobatch_test.go index 57a3b7d6c..a63f3d025 100644 --- a/blockstore/autobatch_test.go +++ b/blockstore/autobatch_test.go @@ -13,19 +13,19 @@ func TestAutobatchBlockstore(t *testing.T) { ab := NewAutobatch(ctx, NewMemory(), len(b0.RawData())+len(b1.RawData())-1) - require.NoError(t, ab.Put(ctx, b0)) - require.NoError(t, ab.Put(ctx, b1)) - require.NoError(t, ab.Put(ctx, b2)) + require.NoError(t, ab.Put(b0)) + require.NoError(t, ab.Put(b1)) + require.NoError(t, ab.Put(b2)) - v0, err := ab.Get(ctx, b0.Cid()) + v0, err := ab.Get(b0.Cid()) require.NoError(t, err) require.Equal(t, b0.RawData(), v0.RawData()) - v1, err := ab.Get(ctx, b1.Cid()) + v1, err := ab.Get(b1.Cid()) require.NoError(t, err) require.Equal(t, b1.RawData(), v1.RawData()) - v2, err := ab.Get(ctx, b2.Cid()) + v2, err := ab.Get(b2.Cid()) require.NoError(t, err) require.Equal(t, b2.RawData(), v2.RawData())