Skip to content

Commit

Permalink
fix tests after rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
vgonkivs committed Oct 22, 2024
1 parent fce70e8 commit 3ca8916
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions store/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,8 @@ func TestEDSStore(t *testing.T) {
require.NoError(t, err)
require.NoError(t, f.Close())
expected := eds.FlattenedODS()
require.Equal(t, expected, share.ToBytes(fromFile))
require.Equal(t, expected, libshare.ToBytes(fromFile))
})

// check that cached file is the same eds
fromFile, err := f.Shares(ctx)
require.NoError(t, err)
require.NoError(t, f.Close())
expected := eds.FlattenedODS()
require.Equal(t, expected, fromFile)
})

t.Run("Second Put should be noop", func(t *testing.T) {
Expand Down Expand Up @@ -249,7 +242,7 @@ func TestEDSStore(t *testing.T) {
require.NoError(t, err)
require.NoError(t, f.Close())
expected := eds.FlattenedODS()
require.Equal(t, expected, fromFile)
require.Equal(t, expected, libshare.ToBytes(fromFile))
})

t.Run("GetByHash", func(t *testing.T) {
Expand All @@ -271,7 +264,7 @@ func TestEDSStore(t *testing.T) {
require.NoError(t, err)
require.NoError(t, f.Close())
expected := eds.FlattenedODS()
require.Equal(t, expected, fromFile)
require.Equal(t, expected, libshare.ToBytes(fromFile))
})
}

Expand Down

0 comments on commit 3ca8916

Please sign in to comment.