forked from go-packages/paypal
Tests fix
This commit is contained in:
parent
1d1d6e5077
commit
959619c327
|
@ -2,6 +2,7 @@ language: go
|
||||||
go:
|
go:
|
||||||
- 1.5
|
- 1.5
|
||||||
- 1.6
|
- 1.6
|
||||||
|
- 1.7
|
||||||
install:
|
install:
|
||||||
- export PATH=$PATH:$HOME/gopath/bin
|
- export PATH=$PATH:$HOME/gopath/bin
|
||||||
script:
|
script:
|
||||||
|
|
|
@ -41,8 +41,8 @@ func TestGetPayments(t *testing.T) {
|
||||||
|
|
||||||
payments, _ := c.GetPayments()
|
payments, _ := c.GetPayments()
|
||||||
|
|
||||||
if len(payments) != 0 {
|
if len(payments) != 2 {
|
||||||
t.Errorf("0 payments must be returned for GetPayments. Returned: " + strconv.Itoa(len(payments)))
|
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.GivenName != "Peter" ||
|
||||||
u.FamilyName != "Pepper" ||
|
u.FamilyName != "Pepper" ||
|
||||||
u.Email != "ppuser@example.com" {
|
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