From 38d643e12b2d55214329c7869300c5c25a8f2c85 Mon Sep 17 00:00:00 2001 From: Andrea Spacca Date: Sun, 15 Mar 2020 20:09:12 +0100 Subject: [PATCH] fix fuzzy --- server/server_fuzz.go | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/server/server_fuzz.go b/server/server_fuzz.go index 301feb3..9949be7 100644 --- a/server/server_fuzz.go +++ b/server/server_fuzz.go @@ -32,28 +32,20 @@ func FuzzLocalStorage(fuzz []byte) int { panic("unable to save file") } - contentType, contentLength, err := storage.Head(token, filename) + contentLength, err := storage.Head(token, filename) if err != nil { panic("not visible through head") } - if contentType != applicationOctetStream { - panic("incorrect content type") - } - if contentLength != fuzzLength { panic("incorrect content length") } - output, contentType, contentLength, err := storage.Get(token, filename) + output, contentLength, err := storage.Get(token, filename) if err != nil { panic("not visible through get") } - if contentType != applicationOctetStream { - panic("incorrect content type") - } - if contentLength != fuzzLength { panic("incorrect content length") } @@ -81,7 +73,7 @@ func FuzzLocalStorage(fuzz []byte) int { panic("unable to delete file") } - _, _, err = storage.Head(token, filename) + _, err = storage.Head(token, filename) if !storage.IsNotExist(err) { panic("file not deleted") }