Tests fix

This commit is contained in:
Aliaksandr Pliutau 2017-04-05 10:47:11 +07:00
parent d3229e32c6
commit bf577f049a
2 changed files with 3 additions and 3 deletions

View File

@ -322,4 +322,4 @@ c.GetCreditCards(nil)
### Tests
* Unit tests: `go test`
* Integration tests: `go test -tags=inegration`
* Integration tests: `go test -tags=integration`

View File

@ -293,8 +293,8 @@ func TestDeleteCreditCard(t *testing.T) {
c, _ := NewClient(testClientID, testSecret, APIBaseSandBox)
c.GetAccessToken()
r1, e1 := c.DeleteCreditCard("")
if e1 == nil || r1 != nil {
e1 := c.DeleteCreditCard("")
if e1 == nil {
t.Errorf("Error is expected for invalid CC ID")
}
}