Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: fix flaky test for eu_auto_taxes_service_spec #2436

Merged
merged 1 commit into from
Aug 19, 2024

Conversation

annvelents
Copy link
Contributor

@annvelents annvelents commented Aug 19, 2024

Context

As customer is created with Factorybot and for zipcode we generate zipcode: Faker::Address.zip_code , we can accidentally generate a zipcode in france for a customer with special rules. This introduces a flaky test, as happened here:
https://github.com/getlago/lago-api/actions/runs/10451847578/job/28939063361

Description

as in the tests we're assuming that customer's zipcode is empty unless actively set (

context 'when customer has no zipcode' do
), the fix is to explicitly create customer with empty zipcode

@annvelents annvelents marked this pull request as ready for review August 19, 2024 14:49
@annvelents annvelents merged commit 1e643d2 into main Aug 19, 2024
6 checks passed
@annvelents annvelents deleted the fix-eu-auto-taxes-service-flaky-test branch August 19, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants