Skip to content

Commit 5ff14c7

Browse files
committed
test(e2e): send empty void grant request
1 parent 95b48a7 commit 5ff14c7

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

e2e/customer_credits_v3_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ func TestV3VoidCreditGrant(t *testing.T) {
208208

209209
// when:
210210
// - the first grant is voided
211-
status, voided, problem := voidCreditGrantRaw(t, c, customerID, grant.ID, nil)
211+
status, voided, problem := voidCreditGrantRaw(t, c, customerID, grant.ID, map[string]any{})
212212
require.Equal(t, http.StatusOK, status, "problem: %+v", problem)
213213
require.NotNil(t, voided)
214214

@@ -233,7 +233,7 @@ func TestV3VoidCreditGrant(t *testing.T) {
233233
})
234234

235235
t.Run("retrying the void is an idempotent success", func(t *testing.T) {
236-
status, again, problem := voidCreditGrantRaw(t, c, customerID, grant.ID, nil)
236+
status, again, problem := voidCreditGrantRaw(t, c, customerID, grant.ID, map[string]any{})
237237
require.Equal(t, http.StatusOK, status, "problem: %+v", problem)
238238
require.NotNil(t, again)
239239
require.Equal(t, v3sdk.CreditGrantStatusVoided, again.Status)
@@ -294,7 +294,7 @@ func TestV3VoidCreditGrant(t *testing.T) {
294294
})
295295

296296
t.Run("voiding an unknown grant is a 404", func(t *testing.T) {
297-
status, _, problem := voidCreditGrantRaw(t, c, customerID, ulid.Make().String(), nil)
297+
status, _, problem := voidCreditGrantRaw(t, c, customerID, ulid.Make().String(), map[string]any{})
298298
require.Equal(t, http.StatusNotFound, status, "problem: %+v", problem)
299299
})
300300
}

0 commit comments

Comments
 (0)