Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
nuuls committed Feb 11, 2023
1 parent 1fb4b76 commit 9ae43ed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/resolvers/default/media_resolver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ func runMRTest(t *testing.T, contentType string, size int64, expectedType string
}

resUnescaped, err := url.PathUnescape(res.Tooltip)
if err != nil {
t.Errorf("PathUnescape should never fail: %v", err)
return
}

if !strings.Contains(resUnescaped, expectedType) {
t.Errorf("Expected: %s, Got: %s", expectedType, res.Tooltip)
Expand Down

0 comments on commit 9ae43ed

Please sign in to comment.