Fix panics after mock introduction #120
2 changed files with 2 additions and 0 deletions
|
@ -54,6 +54,7 @@ func TestIntegration(t *testing.T) {
|
|||
versions := []string{
|
||||
"1.2.7",
|
||||
"1.3.0",
|
||||
"1.5.0",
|
||||
}
|
||||
key, err := keys.NewPrivateKeyFromHex("1dd37fba80fec4e6a6f13fd708d8dcb3b29def768017052f6c930fa1c5d90bbb")
|
||||
require.NoError(t, err)
|
||||
|
|
|
@ -93,6 +93,7 @@ func (t *TestFrostFS) ReadObject(_ context.Context, prm PrmObjectRead) (*ObjectP
|
|||
if prm.PayloadRange[0]+prm.PayloadRange[1] > 0 {
|
||||
off := prm.PayloadRange[0]
|
||||
payload = payload[off : off+prm.PayloadRange[1]]
|
||||
obj = nil // GetRange does not return header values
|
||||
}
|
||||
|
||||
return &ObjectPart{
|
||||
|
|
Loading…
Reference in a new issue