Closed Javier-Jimenez-18 closed 10 months ago
Removed creating a temporary "tmp" directory in the GitHub workflow file build-and-test-not-master.yml .
Added code to create a temporary "tmp" directory in the BackgroundJob::DbQuery#process method.
The 2 RSpec background_job tests still PASS:
Fixed the following two FAILs when running the RSpec tests using the GitHub workflow file build-and-test-not-master.yml:
rspec ./spec/models/background_job/db_query_spec.rb:9 # BackgroundJob::DbQuery#process should complete successfully when there is a valid SQL query
rspec ./spec/models/background_job/db_query_spec.rb:17 # BackgroundJob::DbQuery#process should update the status to "error" for the user when the SQL query is invalid
Including these 2 BackgroundJob failures, there is a total of 85 failures:
I de-bugged the code by adding print statements to find what caused the errors:
I modified the GitHub workflow file to add a temporary directory and file to store the output csv when the BackgroundJob::DbQuery#process method is called:
The two tests PASS. Now, there is a total of 83 non-BackgroundJob failures: