Skip to content
RED SAG Skills
hardStudy question · answer published in Automation Testing interview questions, so no pointstest-automationtest-isolation

A cache that remembers old tests

A singleton PriceCache is filled by one test with a ₹999 price. Another test later expects ₹1,099 from a stubbed service but gets ₹999. What is the best long-term fix?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions