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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
7d626c41
Commit
7d626c41
authored
May 02, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix BuildTraceChunkFlushToDbWorker name
parent
950df8ba
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
app/models/ci/build_trace_chunk.rb
app/models/ci/build_trace_chunk.rb
+1
-1
app/workers/build_trace_chunk_flush_to_db_worker.rb
app/workers/build_trace_chunk_flush_to_db_worker.rb
+1
-1
spec/models/ci/build_trace_chunk_spec.rb
spec/models/ci/build_trace_chunk_spec.rb
+2
-2
No files found.
app/models/ci/build_trace_chunk.rb
View file @
7d626c41
...
...
@@ -99,7 +99,7 @@ module Ci
def
schedule_to_db
return
if
db?
BuildTraceChunkFlushToD
B
Worker
.
perform_async
(
id
)
BuildTraceChunkFlushToD
b
Worker
.
perform_async
(
id
)
end
def
fullfilled?
...
...
app/workers/build_trace_chunk_flush_to_db_worker.rb
View file @
7d626c41
class
BuildTraceChunkFlushToD
B
Worker
class
BuildTraceChunkFlushToD
b
Worker
include
ApplicationWorker
include
PipelineQueue
...
...
spec/models/ci/build_trace_chunk_spec.rb
View file @
7d626c41
...
...
@@ -75,7 +75,7 @@ describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
let
(
:value
)
{
'a'
*
described_class
::
CHUNK_SIZE
}
it
'schedules stashing data'
do
expect
(
BuildTraceChunkFlushToD
B
Worker
).
to
receive
(
:perform_async
).
once
expect
(
BuildTraceChunkFlushToD
b
Worker
).
to
receive
(
:perform_async
).
once
subject
end
...
...
@@ -112,7 +112,7 @@ describe Ci::BuildTraceChunk, :clean_gitlab_redis_shared_state do
context
'when fullfilled chunk size'
do
it
'does not schedule stashing data'
do
expect
(
BuildTraceChunkFlushToD
B
Worker
).
not_to
receive
(
:perform_async
)
expect
(
BuildTraceChunkFlushToD
b
Worker
).
not_to
receive
(
:perform_async
)
subject
end
...
...
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