forked from TrueCloudLab/frostfs-api-go
object: prevent potential NPE panic in PutRequest.CID method
This commit is contained in:
parent
908e0f3c8f
commit
e999110be1
2 changed files with 5 additions and 1 deletions
|
@ -16,6 +16,7 @@ func TestRequest(t *testing.T) {
|
|||
&DeleteRequest{},
|
||||
&GetRangeRequest{},
|
||||
&GetRangeHashRequest{},
|
||||
MakePutRequestHeader(nil, nil),
|
||||
}
|
||||
|
||||
types := []RequestType{
|
||||
|
@ -26,6 +27,7 @@ func TestRequest(t *testing.T) {
|
|||
RequestDelete,
|
||||
RequestRange,
|
||||
RequestRangeHash,
|
||||
RequestPut,
|
||||
}
|
||||
|
||||
for i := range cases {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue