Skip to content

Commit

Permalink
chore: fix flakiness test_sales_order_partial_advance_payment
Browse files Browse the repository at this point in the history
(cherry picked from commit 4dff2c7)
  • Loading branch information
ruthra-kumar authored and mergify[bot] committed Nov 21, 2023
1 parent 034375b commit 2bec89a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions erpnext/selling/doctype/sales_order/test_sales_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -1784,10 +1784,10 @@ def test_sales_order_partial_advance_payment(self):
si.submit()
pe.load_from_db()

self.assertEqual(pe.references[0].reference_name, si.name)
self.assertEqual(pe.references[0].allocated_amount, 200)
self.assertEqual(pe.references[1].reference_name, so.name)
self.assertEqual(pe.references[1].allocated_amount, 300)
self.assertEqual(pe.references[0].reference_name, so.name)
self.assertEqual(pe.references[0].allocated_amount, 300)
self.assertEqual(pe.references[1].reference_name, si.name)
self.assertEqual(pe.references[1].allocated_amount, 200)

def test_delivered_item_material_request(self):
"SO -> MR (Manufacture) -> WO. Test if WO Qty is updated in SO."
Expand Down

0 comments on commit 2bec89a

Please sign in to comment.