diff options
author | Stan Hu <stanhu@gmail.com> | 2017-06-04 22:12:18 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2017-06-05 22:09:41 -0700 |
commit | 5db093bf143adb81bf7f7d97537b309af128d516 (patch) | |
tree | 40a70fc90b5cd991f427b8d67be5df48c7dd4231 | |
parent | 94644565971c80c9933ab3d05c534b3b5cbec4d1 (diff) | |
download | gitlab-ce-sh-fix-failing-fork-spec.tar.gz |
Fix failing spec in spec/requests/api/projects_spec.rbsh-fix-failing-fork-spec
Specs were failing due to Sidekiq jobs not actually executing, which caused them to be stuck in the scheduled instead of the started state.
Closes #33340
-rw-r--r-- | spec/requests/api/projects_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/requests/api/projects_spec.rb b/spec/requests/api/projects_spec.rb index 5c13cea69fb..b353a49d03c 100644 --- a/spec/requests/api/projects_spec.rb +++ b/spec/requests/api/projects_spec.rb @@ -1470,6 +1470,10 @@ describe API::Projects do project.add_reporter(user2) end + around(:each) do |example| + Sidekiq::Testing.inline! { example.run } + end + context 'when authenticated' do it 'forks if user has sufficient access to project' do post api("/projects/#{project.id}/fork", user2) |