BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
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
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
build_trace_chunk.rb
app/models/ci/build_trace_chunk.rb
+1
-1
build_trace_chunk_flush_to_db_worker.rb
app/workers/build_trace_chunk_flush_to_db_worker.rb
+1
-1
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