Skip to content

Commit

Permalink
Add more detail to TestTimeout failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron42net committed Nov 6, 2016
1 parent b7d808c commit 0b5b750
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/fotomat/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

const (
// FotomatVersion is updated by git-hooks/pre-commit
FotomatVersion = "2.6.195"
FotomatVersion = "2.6.196"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion thumbnail/proxy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ func TestTimeout(t *testing.T) {
ps.scheme = "http"
ps.host = "127.0.0.2"

assert.Equal(t, http.StatusGatewayTimeout, ps.getStatus("timeout"))
body, status := ps.get("timeout")
assert.Equal(t, http.StatusGatewayTimeout, status, string(body))
}

func TestErrors(t *testing.T) {
Expand Down

0 comments on commit 0b5b750

Please sign in to comment.