Skip to content

Commit

Permalink
Update naming and add to flaky tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mullermp committed Oct 16, 2023
1 parent c905908 commit dd717cb
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build_tools/spec/changelog_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require_relative 'spec_helper'

module BuildTools
describe Changelog do
describe Changelog, :jruby_flaky do

let(:path) { Tempfile.create('file').path }
let(:expected_changelog) { <<-LOG
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module Aws
module Plugins
describe EndpointDiscovery, :flaky do
describe EndpointDiscovery, :jruby_flaky do

EndpointDiscoveryClient = ApiHelper.sample_service(
api: {
Expand Down
2 changes: 1 addition & 1 deletion gems/aws-sdk-core/spec/retry_errors_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def apply_expectations(test_case)
if expected[:clock_correction]
endpoint = resp.context.http_request.endpoint
expect(resp.context.config.clock_skew.clock_correction(endpoint))
.to be_within(1).of(expected[:clock_correction])
.to be_within(5).of(expected[:clock_correction])
end
end

Expand Down
2 changes: 1 addition & 1 deletion gems/aws-sdk-core/spec/shared_spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
end

if defined?(JRUBY_VERSION)
config.around(:each, :flaky) do |example|
config.around(:each, :jruby_flaky) do |example|
attempt = 0
retries = 3
loop do
Expand Down
2 changes: 1 addition & 1 deletion gems/aws-sdk-s3/spec/object/download_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module S3
let(:client) { S3::Client.new(stub_responses: true) }
let(:tmpdir) { Dir.tmpdir }

describe '#download_file' do
describe '#download_file', :jruby_flaky do
let(:path) { Tempfile.new('destination').path }

let(:small_obj) do
Expand Down
2 changes: 1 addition & 1 deletion gems/aws-sdk-s3/spec/object/upload_stream_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module S3
describe Object do
let(:client) { S3::Client.new(stub_responses: true) }

describe '#upload_stream' do
describe '#upload_stream', :jruby_flaky do
let(:object) do
S3::Object.new(
bucket_name: 'bucket',
Expand Down

0 comments on commit dd717cb

Please sign in to comment.