Skip to content

Commit

Permalink
Merge pull request #25 from relvacode/master
Browse files Browse the repository at this point in the history
go fmt complete
  • Loading branch information
Seth Ammons authored Sep 19, 2017
2 parents a86a2d8 + bd706d6 commit 0af5bab
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 0af5bab

Please sign in to comment.