We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8c1bbf commit 6610f5fCopy full SHA for 6610f5f
gems/aws-sdk-core/spec/aws/plugins/endpoint_discovery_spec.rb
@@ -275,8 +275,12 @@ module Plugins
275
]
276
}
277
)
278
+ cache_thread_block = nil
279
+ allow(Thread).to receive(:new) do |&block|
280
+ cache_thread_block = block
281
+ end
282
c.operation_not_required(foo: 'foo')
- sleep(0.1)
283
+ cache_thread_block.call
284
expect(c.api_requests.size).to eq(3)
285
286
expect(c.api_requests.size).to eq(4)
0 commit comments