Skip to content

Commit

Permalink
Remove flaky test
Browse files Browse the repository at this point in the history
  • Loading branch information
marlena-b committed Aug 28, 2024
1 parent a784dde commit c8291ac
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions rails_application/test/orders/product_price_changed_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,6 @@ def test_reflects_change
assert event_store.event_in_stream?(price_events.event_id, "Orders$all")
end

def test_race_condition
product_id = SecureRandom.uuid
run_command(Pricing::SetPrice.new(product_id: product_id, price: 100))
run_command(ProductCatalog::RegisterProduct.new(product_id: product_id))

assert_equal 100, Product.find_by_uid(product_id).price
end

private

def event_store
Expand Down

0 comments on commit c8291ac

Please sign in to comment.