Skip to content

Commit

Permalink
Add test for error payment status
Browse files Browse the repository at this point in the history
Signed-off-by: Marius Sincovici <marius.sincovici@nordsec.com>

If the payment status is "error" then consider it invalid.
  • Loading branch information
mariusSincovici committed Jan 3, 2025
1 parent 8a42671 commit 4d13245
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions events/moose/moose_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ func TestIsPaymentValid(t *testing.T) {
{name: "empty payment", valid: false},
{name: "invalid status", valid: false, payment: core.Payment{Status: "invalid"}},
{name: "done status", valid: true, payment: core.Payment{Status: "done"}},
{name: "error status", valid: false, payment: core.Payment{Status: "error"}},
} {
t.Run(tt.name, func(t *testing.T) {
assert.Equal(
Expand Down

0 comments on commit 4d13245

Please sign in to comment.