diff --git a/test/test_stress.rb b/test/test_stress.rb index 8b4871b..11c2c78 100644 --- a/test/test_stress.rb +++ b/test/test_stress.rb @@ -30,20 +30,18 @@ module En57 account_scope = event_store.read.with_tag(account_tag) barrier.wait - if account_balance(account_scope) >= 100 - event_store.append( - [ - Event.new( - type: "CreditsUsed", - data: { - amount: 100, - }, - tags: [account_tag], - ), - ], - fail_if: account_scope.of_type("CreditsUsed"), - ) - end + event_store.append( + [ + Event.new( + type: "CreditsUsed", + data: { + amount: 100, + }, + tags: [account_tag], + ), + ], + fail_if: account_scope.of_type("CreditsUsed"), + ) rescue AppendConditionViolated => e e end