Tests fix

This commit is contained in:
Alexander Plutov 2016-09-12 13:59:23 +07:00
parent 1d1d6e5077
commit 959619c327
3 changed files with 4 additions and 3 deletions

View File

@ -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:

View File

@ -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)))
} }
} }

View File

@ -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)
} }
} }