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
d3229e32c6
commit
bf577f049a
|
@ -322,4 +322,4 @@ c.GetCreditCards(nil)
|
||||||
### Tests
|
### Tests
|
||||||
|
|
||||||
* Unit tests: `go test`
|
* Unit tests: `go test`
|
||||||
* Integration tests: `go test -tags=inegration`
|
* Integration tests: `go test -tags=integration`
|
||||||
|
|
|
@ -293,8 +293,8 @@ func TestDeleteCreditCard(t *testing.T) {
|
||||||
c, _ := NewClient(testClientID, testSecret, APIBaseSandBox)
|
c, _ := NewClient(testClientID, testSecret, APIBaseSandBox)
|
||||||
c.GetAccessToken()
|
c.GetAccessToken()
|
||||||
|
|
||||||
r1, e1 := c.DeleteCreditCard("")
|
e1 := c.DeleteCreditCard("")
|
||||||
if e1 == nil || r1 != nil {
|
if e1 == nil {
|
||||||
t.Errorf("Error is expected for invalid CC ID")
|
t.Errorf("Error is expected for invalid CC ID")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user