Skip to content

Commit

Permalink
Update unrelated test making overly strict assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Nov 22, 2024
1 parent 61eef5c commit b2b3edd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions submit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,9 @@ func checkParsedMultipartUpload(t *testing.T, p *payload) {
if len(p.Logs) != 4 {
t.Errorf("Log length: got %d, want 4", len(p.Logs))
}
if len(p.Data) != 3 {
t.Errorf("Data length: got %d, want 3", len(p.Data))
// One extra data field to account for User Agent being parsed into two fields
if len(p.Data) != 4 {
t.Errorf("Data length: got %d, want 4", len(p.Data))
}
if len(p.Labels) != 0 {
t.Errorf("Labels: got %#v, want []", p.Labels)
Expand Down

0 comments on commit b2b3edd

Please sign in to comment.