Fix panics after mock introduction #120

Merged
alexvanin merged 2 commits from alexvanin/frostfs-http-gw:fix/117 into master 2024-06-25 15:12:23 +00:00
2 changed files with 2 additions and 0 deletions
Showing only changes of commit a62c8f0f5a - Show all commits

View file

@ -54,6 +54,7 @@ func TestIntegration(t *testing.T) {
versions := []string{ versions := []string{
"1.2.7", "1.2.7",
"1.3.0", "1.3.0",
"1.5.0",
} }
key, err := keys.NewPrivateKeyFromHex("1dd37fba80fec4e6a6f13fd708d8dcb3b29def768017052f6c930fa1c5d90bbb") key, err := keys.NewPrivateKeyFromHex("1dd37fba80fec4e6a6f13fd708d8dcb3b29def768017052f6c930fa1c5d90bbb")
require.NoError(t, err) require.NoError(t, err)

View file

@ -93,6 +93,7 @@ func (t *TestFrostFS) ReadObject(_ context.Context, prm PrmObjectRead) (*ObjectP
if prm.PayloadRange[0]+prm.PayloadRange[1] > 0 { if prm.PayloadRange[0]+prm.PayloadRange[1] > 0 {
off := prm.PayloadRange[0] off := prm.PayloadRange[0]
payload = payload[off : off+prm.PayloadRange[1]] payload = payload[off : off+prm.PayloadRange[1]]
obj = nil // GetRange does not return header values
} }
return &ObjectPart{ return &ObjectPart{