From c8291acb3cd3c83bc9ba6a8e50c54e57acec1a8c Mon Sep 17 00:00:00 2001 From: marlena-b Date: Wed, 28 Aug 2024 11:51:44 +0200 Subject: [PATCH] Remove flaky test --- .../test/orders/product_price_changed_test.rb | 8 -------- 1 file changed, 8 deletions(-) diff --git a/rails_application/test/orders/product_price_changed_test.rb b/rails_application/test/orders/product_price_changed_test.rb index b53f19cd0..517f3140c 100644 --- a/rails_application/test/orders/product_price_changed_test.rb +++ b/rails_application/test/orders/product_price_changed_test.rb @@ -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