Skip to content

Commit 52b0a34

Browse files
committed
test: fix failing tests and lint
Signed-off-by: Arjun Rajappa <arjun.rajappa@ibm.com>
1 parent f3d6fbd commit 52b0a34

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

lib/instana/trace/span.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,13 @@ def add_stack(limit: 30, stack: Kernel.caller)
8383

8484
@attributes[:stack] = stack
8585
.map do |call|
86-
file, line, *method = call.split(':')
86+
file, line, *method = call.split(':')
8787

88-
{
89-
c: file,
90-
n: line,
91-
m: method.join(' ')
92-
}
88+
{
89+
c: file,
90+
n: line,
91+
m: method.join(' ')
92+
}
9393
end.take(limit > 40 ? 40 : limit)
9494
end
9595

test/instrumentation/rest_client_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
class RestClientTest < Minitest::Test
88
def setup
99
# See https://github.com/rest-client/rest-client/issues/612
10-
OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:ciphers] = OpenSSL::SSL::SSLContext.new.ciphers
10+
OpenSSL::SSL::SSLContext::DEFAULT_PARAMS[:ciphers] = OpenSSL::SSL::SSLContext.new.ciphers if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('4.0')
1111
end
1212

1313
def teardown

0 commit comments

Comments
 (0)