Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
64a2badf
Commit
64a2badf
authored
Dec 07, 2018
by
blackst0ne
Committed by
Rémy Coutable
Oct 22, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make 'Sidekiq::Testing.fake!' mode as default
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
7754808a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
changelogs/unreleased/blackst0ne-make-sidekiq-testing-fake-default.yml
...released/blackst0ne-make-sidekiq-testing-fake-default.yml
+5
-0
spec/controllers/projects/mirrors_controller_spec.rb
spec/controllers/projects/mirrors_controller_spec.rb
+0
-4
spec/support/sidekiq.rb
spec/support/sidekiq.rb
+1
-1
No files found.
changelogs/unreleased/blackst0ne-make-sidekiq-testing-fake-default.yml
0 → 100644
View file @
64a2badf
---
title
:
Make 'Sidekiq::Testing.fake!' mode as default
merge_request
:
31662
author
:
"
@blackst0ne"
type
:
other
spec/controllers/projects/mirrors_controller_spec.rb
View file @
64a2badf
...
@@ -51,10 +51,6 @@ describe Projects::MirrorsController do
...
@@ -51,10 +51,6 @@ describe Projects::MirrorsController do
sign_in
(
project
.
owner
)
sign_in
(
project
.
owner
)
end
end
around
do
|
example
|
Sidekiq
::
Testing
.
fake!
{
example
.
run
}
end
context
'With valid URL for a push'
do
context
'With valid URL for a push'
do
let
(
:remote_mirror_attributes
)
do
let
(
:remote_mirror_attributes
)
do
{
"0"
=>
{
"enabled"
=>
"0"
,
url:
'https://updated.example.com'
}
}
{
"0"
=>
{
"enabled"
=>
"0"
,
url:
'https://updated.example.com'
}
}
...
...
spec/support/sidekiq.rb
View file @
64a2badf
# frozen_string_literal: true
# frozen_string_literal: true
require
'sidekiq/testing
/inline
'
require
'sidekiq/testing'
# If Sidekiq::Testing.inline! is used, SQL transactions done inside
# If Sidekiq::Testing.inline! is used, SQL transactions done inside
# Sidekiq worker are included in the SQL query limit (in a real
# Sidekiq worker are included in the SQL query limit (in a real
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment