Skip to content

Commit

Permalink
skip large file test by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rockuw committed Dec 16, 2015
1 parent 26388b8 commit de8656b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_large_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
$LOAD_PATH.unshift(File.expand_path("../../lib", __FILE__))
require 'aliyun/oss'

class TestObjectKey < Minitest::Test
class TestLargeFile < Minitest::Test
def setup
conf_file = '~/.oss.yml'
conf = YAML.load(File.read(File.expand_path(conf_file)))
Expand All @@ -23,6 +23,8 @@ def get_key(k)
end

def test_large_file_1gb
skip "don't run it by default"

key = get_key("large_file_1gb")
Benchmark.bm(32) do |bm|
bm.report("Upload with put_object: ") do
Expand All @@ -44,6 +46,8 @@ def test_large_file_1gb
end

def test_large_file_8gb
skip "don't run it by default"

key = get_key("large_file_8gb")
Benchmark.bm(32) do |bm|
bm.report("Upload with put_object: ") do
Expand Down

0 comments on commit de8656b

Please sign in to comment.