forked from TrueCloudLab/frostfs-node
[#660] writecache: Fix remaining addr2key uses
Signed-off-by: Alejandro Lopez <a.lopez@yadro.com>
This commit is contained in:
parent
fe5aa06a75
commit
1daef2ceeb
2 changed files with 6 additions and 5 deletions
|
@ -52,8 +52,9 @@ func TestFlush(t *testing.T) {
|
|||
Desc: "db, invalid object",
|
||||
InjectFn: func(t *testing.T, wc writecache.Cache) {
|
||||
c := wc.(*cache)
|
||||
key := addr2key(oidtest.Address())
|
||||
require.NoError(t, c.db.Update(func(tx *badger.Txn) error {
|
||||
return tx.Set([]byte(oidtest.Address().EncodeToString()), []byte{1, 2, 3})
|
||||
return tx.Set(key[:], []byte{1, 2, 3})
|
||||
}))
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue