Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use gopkg.in/check.v1 #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
joyenthttp "github.com/joyent/gocommon/http"
"github.com/joyent/gocommon/jpc"
"github.com/joyent/gosign/auth"
gc "launchpad.net/gocheck"
gc "gopkg.in/check.v1"
"net/http"
"testing"
"time"
Expand Down
2 changes: 1 addition & 1 deletion errors/errors_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ package errors_test

import (
"github.com/joyent/gocommon/errors"
gc "launchpad.net/gocheck"
gc "gopkg.in/check.v1"
"testing"
)

Expand Down
3 changes: 1 addition & 2 deletions gocommon_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/


package gocommon

import (
gc "launchpad.net/gocheck"
gc "gopkg.in/check.v1"
"testing"
)

Expand Down
2 changes: 1 addition & 1 deletion http/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func (c *Client) sendRateLimitedRequest(method, URL string, headers http.Header,
return nil, errors.Newf(err, "Resource limit exeeded at URL %s", URL)
}
if logger != nil {
logger.Println("Too many requests, retrying in %dms.", int(retryAfter*1000))
logger.Printf("Too many requests, retrying in %dms.", int(retryAfter*1000))
}
time.Sleep(time.Duration(retryAfter) * time.Second)
}
Expand Down
2 changes: 1 addition & 1 deletion http/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"fmt"
"io/ioutil"
gc "launchpad.net/gocheck"
gc "gopkg.in/check.v1"
"net/http"
"testing"

Expand Down
2 changes: 1 addition & 1 deletion testing/httpsuite.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ package testing

import (
"github.com/julienschmidt/httprouter"
gc "launchpad.net/gocheck"
gc "gopkg.in/check.v1"
"net/http"
"net/http/httptest"
)
Expand Down
2 changes: 1 addition & 1 deletion testing/httpsuite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"crypto/tls"
"crypto/x509"
"io/ioutil"
gc "launchpad.net/gocheck"
gc "gopkg.in/check.v1"
"net/http"
"net/url"
"reflect"
Expand Down
2 changes: 1 addition & 1 deletion version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package gocommon

import (
gc "launchpad.net/gocheck"
gc "gopkg.in/check.v1"
)

type VersionTestSuite struct {
Expand Down