Skip to content

Stub DetectRepositoryLanguagesWorker for all tests

Igor Drozdov requested to merge id-project-for-in-tests into master

What does this MR do?

Stubs DetectRepositoryLanguagesWorker for all tests. As a result, only a couple of request specs failed for which we can explicitly call the original worker.

It's helpful for the test cases, which call after_import method of project's repository. For example, the execution time of fork_project method call with repository: true param set has reduced from 8 seconds to just 1

As a result, it has reduced the execution time of spec/models/project_spec.rb on my local machine:

Before:
Finished in 3 minutes 22.9 seconds

After
Finished in 1 minute 39.72 seconds
Edited by Igor Drozdov

Merge request reports