Skip to content

Commit

Permalink
go fmt complete
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason Kingsbury committed Sep 19, 2017
1 parent a86a2d8 commit bd706d6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"testing"
"time"

"errors"
"net/http"
"net/http/cookiejar"
"errors"
)

func TestConcurrentRequests(t *testing.T) {
Expand Down Expand Up @@ -104,17 +104,17 @@ func TestDefaultBackoff(t *testing.T) {
func TestFormatError(t *testing.T) {
t.Parallel()
err := errors.New("Get http://localhost:9000/foo: dial tcp 127.0.0.1:9000: getsockopt: connection refused")
expected := "1491271979 Get [GET] http://localhost:9000/foo request-0 retry-2 error: "+ err.Error()+"\n"
expected := "1491271979 Get [GET] http://localhost:9000/foo request-0 retry-2 error: " + err.Error() + "\n"

e := ErrEntry{
Time: time.Unix(1491271979, 0),
Method: "Get",
URL: "http://localhost:9000/foo",
Verb: http.MethodGet,
Time: time.Unix(1491271979, 0),
Method: "Get",
URL: "http://localhost:9000/foo",
Verb: http.MethodGet,
Request: 0,
Retry: 2,
Retry: 2,
Attempt: 1,
Err: err,
Err: err,
}

c := New()
Expand Down

0 comments on commit bd706d6

Please sign in to comment.