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
Boxiang Sun
gitlab-ce
Commits
3c6ab899
Commit
3c6ab899
authored
Apr 05, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unrelated specs
parent
446086f1
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
486 deletions
+0
-486
spec/support/chunked_io/chunked_io_helpers.rb
spec/support/chunked_io/chunked_io_helpers.rb
+0
-32
spec/support/shared_examples/lib/gitlab/ci/trace/chunked_file/chunked_io_shared_examples.rb
...itlab/ci/trace/chunked_file/chunked_io_shared_examples.rb
+0
-454
No files found.
spec/support/chunked_io/chunked_io_helpers.rb
deleted
100644 → 0
View file @
446086f1
module
ChunkedIOHelpers
def
fill_trace_to_chunks
(
data
)
stream
=
described_class
.
new
(
job_id
,
nil
,
'a+b'
)
stream
.
write
(
data
)
stream
.
close
end
def
sample_trace_raw
# ChunkStore::Database doesn't support appending, so the test data size has to be least common multiple
if
chunk_stores
.
first
==
Gitlab
::
Ci
::
Trace
::
ChunkedFile
::
ChunkStore
::
Database
'01234567'
*
32
# 256 bytes
else
File
.
read
(
expand_fixture_path
(
'trace/sample_trace'
))
end
end
def
set_smaller_buffer_size_than
(
file_size
)
blocks
=
(
file_size
/
128
)
new_size
=
(
blocks
/
2
)
*
128
allow_any_instance_of
(
described_class
).
to
receive
(
:buffer_size
).
and_return
(
new_size
)
end
def
set_larger_buffer_size_than
(
file_size
)
blocks
=
(
file_size
/
128
)
new_size
=
(
blocks
*
2
)
*
128
allow_any_instance_of
(
described_class
).
to
receive
(
:buffer_size
).
and_return
(
new_size
)
end
def
set_half_buffer_size_of
(
file_size
)
allow_any_instance_of
(
described_class
).
to
receive
(
:buffer_size
).
and_return
(
file_size
/
2
)
end
end
spec/support/shared_examples/lib/gitlab/ci/trace/chunked_file/chunked_io_shared_examples.rb
deleted
100644 → 0
View file @
446086f1
This diff is collapsed.
Click to expand it.
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