Skip to content

Commit

Permalink
Minor adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
rhames07 committed Mar 4, 2024
1 parent c569a25 commit 9e13490
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/integration/customer/customer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ func TestCustomer(t *testing.T) {
result, err := client.Update(context.Background(), cus.ID, uReq)
if result == nil {
t.Error("customer can't be nil")
return
}
if result.Description != "Description updated." {
t.Error("update failed")
Expand Down
9 changes: 9 additions & 0 deletions test/integration/merchantorder/merchantorder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ func TestMerchantOrder(t *testing.T) {
pref, err := preferenceClient.Create(context.Background(), prefReq)
if pref == nil {
t.Error("preference can't be nil")
return
}
if err != nil {
t.Errorf(err.Error())
Expand Down Expand Up @@ -64,6 +65,7 @@ func TestMerchantOrder(t *testing.T) {
order, err := client.Create(context.Background(), req)
if order == nil {
t.Error("merchant order can't be nil")
return
}
if err != nil {
t.Errorf(err.Error())
Expand Down Expand Up @@ -92,6 +94,7 @@ func TestMerchantOrder(t *testing.T) {
pref, err := preferenceClient.Create(context.Background(), prefReq)
if pref == nil {
t.Error("preference can't be nil")
return
}
if err != nil {
t.Errorf(err.Error())
Expand Down Expand Up @@ -123,6 +126,7 @@ func TestMerchantOrder(t *testing.T) {
order, err := client.Create(context.Background(), createReq)
if order == nil {
t.Error("merchant order can't be nil")
return
}
if err != nil {
t.Errorf(err.Error())
Expand All @@ -144,6 +148,7 @@ func TestMerchantOrder(t *testing.T) {
if order == nil {
fmt.Println(err)
t.Error("merchant order can't be nil")
return
}
if err != nil {
t.Errorf(err.Error())
Expand Down Expand Up @@ -172,6 +177,7 @@ func TestMerchantOrder(t *testing.T) {
pref, err := preferenceClient.Create(context.Background(), prefReq)
if pref == nil {
t.Error("preference can't be nil")
return
}
if err != nil {
t.Errorf(err.Error())
Expand Down Expand Up @@ -202,6 +208,7 @@ func TestMerchantOrder(t *testing.T) {
order, err := client.Create(context.Background(), req)
if order == nil {
t.Error("merchant order can't be nil")
return
}
if err != nil {
t.Errorf(err.Error())
Expand All @@ -210,6 +217,7 @@ func TestMerchantOrder(t *testing.T) {
order, err = client.Get(context.Background(), order.ID)
if order == nil {
t.Error("merchant order can't be nil")
return
}
if err != nil {
t.Errorf(err.Error())
Expand All @@ -233,6 +241,7 @@ func TestMerchantOrder(t *testing.T) {
order, err := client.Search(context.Background(), req)
if order == nil {
t.Error("merchant order can't be nil")
return
}
if err != nil {
t.Errorf(err.Error())
Expand Down

0 comments on commit 9e13490

Please sign in to comment.