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

test_import_job_obs_with_one_photo #2637

Open
JoeCohen opened this issue Jan 4, 2025 · 0 comments
Open

test_import_job_obs_with_one_photo #2637

JoeCohen opened this issue Jan 4, 2025 · 0 comments
Assignees
Labels
bug iNat interaction with iNat tests

Comments

@JoeCohen
Copy link
Member

JoeCohen commented Jan 4, 2025

This test fails unless a previous test has completed a InatImportJob.perform_now.

@mo-nathan points out:

I did some more poking at this since it fails fairly often. The test in question, test_import_job_obs_with_one_photo, only passes if a previous test has completed a InatImportJob.perform_now. A specific test that you can run before that one to get it to succeed is test_import_job_obs_with_sequence_and_multiple_ids. So if you comment out all the other tests in this file and then run:
rails t test/jobs/inat_import_job_test.rb --verbose --seed 31849
it should run test_import_job_obs_with_sequence_and_multiple_ids before test_import_job_obs_with_one_photo. and both should succeed. The key bit in the first test is the InatImportJob.perform_now(inat_import). The key data difference I see inside test_import_job_obs_with_one_photo is that the current name of the image that gets tested. I don’t understand enough of how that gets set to go further at the moment, but hopefully that helps you get unstuck on this issue.

@JoeCohen JoeCohen added bug tests iNat interaction with iNat labels Jan 4, 2025
@JoeCohen JoeCohen self-assigned this Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug iNat interaction with iNat tests
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant