From bf577f049a95d9b2198d5992c8c099ff4eef7065 Mon Sep 17 00:00:00 2001 From: Aliaksandr Pliutau Date: Wed, 5 Apr 2017 10:47:11 +0700 Subject: [PATCH] Tests fix --- README.md | 2 +- integration_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 3d2af85..12692f3 100644 --- a/README.md +++ b/README.md @@ -322,4 +322,4 @@ c.GetCreditCards(nil) ### Tests * Unit tests: `go test` -* Integration tests: `go test -tags=inegration` \ No newline at end of file +* Integration tests: `go test -tags=integration` diff --git a/integration_test.go b/integration_test.go index 92c9188..1d410de 100644 --- a/integration_test.go +++ b/integration_test.go @@ -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") } }