Update test to look for file to not gain an additional .gz extension.

This commit is contained in:
Michael Kaye 2022-01-18 17:28:01 +00:00
parent ff5ac238c4
commit d337ec9843

View file

@ -160,7 +160,7 @@ func TestMultipartUpload(t *testing.T) {
// check file uploaded correctly // check file uploaded correctly
checkUploadedFile(t, reportDir, "passwd.txt", false, "bibblybobbly") checkUploadedFile(t, reportDir, "passwd.txt", false, "bibblybobbly")
checkUploadedFile(t, reportDir, "crash.log.gz.gz", true, "test\n") checkUploadedFile(t, reportDir, "crash.log.gz", true, "test\n")
} }
func multipartBody() (body string) { func multipartBody() (body string) {
@ -262,7 +262,7 @@ func checkParsedMultipartUpload(t *testing.T, p *parsedPayload) {
if p.Logs[2] != wanted { if p.Logs[2] != wanted {
t.Errorf("Log 2: got %s, want %s", p.Logs[2], wanted) t.Errorf("Log 2: got %s, want %s", p.Logs[2], wanted)
} }
wanted = "crash.log.gz.gz" wanted = "crash.log.gz"
if p.Logs[3] != wanted { if p.Logs[3] != wanted {
t.Errorf("Log 3: got %s, want %s", p.Logs[3], wanted) t.Errorf("Log 3: got %s, want %s", p.Logs[3], wanted)
} }