mirror of
https://github.com/plutov/paypal.git
synced 2025-02-02 15:10:36 +01:00
Tests fix
This commit is contained in:
parent
1d1d6e5077
commit
959619c327
|
@ -2,6 +2,7 @@ language: go
|
|||
go:
|
||||
- 1.5
|
||||
- 1.6
|
||||
- 1.7
|
||||
install:
|
||||
- export PATH=$PATH:$HOME/gopath/bin
|
||||
script:
|
||||
|
|
|
@ -41,8 +41,8 @@ func TestGetPayments(t *testing.T) {
|
|||
|
||||
payments, _ := c.GetPayments()
|
||||
|
||||
if len(payments) != 0 {
|
||||
t.Errorf("0 payments must be returned for GetPayments. Returned: " + strconv.Itoa(len(payments)))
|
||||
if len(payments) != 2 {
|
||||
t.Errorf("2 payments must be returned for GetPayments. Returned: " + strconv.Itoa(len(payments)))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -27,6 +27,6 @@ func TestTypeUserInfo(t *testing.T) {
|
|||
u.GivenName != "Peter" ||
|
||||
u.FamilyName != "Pepper" ||
|
||||
u.Email != "ppuser@example.com" {
|
||||
t.Errorf("UserInfo decoded result is incorrect")
|
||||
t.Errorf("UserInfo decoded result is incorrect, Given: %v", u)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user