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 21, 2024
1 parent 4f38d95 commit f67b931
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 @@ -122,15 +122,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 @@ -248,7 +241,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 @@ -270,7 +263,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 f67b931

Please sign in to comment.