test/instrumentation/grpc_test.rb in instana-1.9.6 vs test/instrumentation/grpc_test.rb in instana-1.9.7

- old
+ new

@@ -22,11 +22,11 @@ [trying_server, trying_client] end end def assert_client_trace(client_trace, call: '', call_type: '', error: nil) - assert_equal 2, client_trace.spans.count + assert_equal 2, client_trace.spans.length spans = client_trace.spans.to_a first_span = spans[0] second_span = spans[1] # Span name validation @@ -48,10 +48,10 @@ assert_equal "2:RuntimeError: #{error}", data[:log][:message] end end def assert_server_trace(server_trace, call: '', call_type: '', error: nil) - assert_equal 1, server_trace.spans.count + assert_equal 1, server_trace.spans.length span = server_trace.spans.to_a.first # Span name validation assert_equal :'rpc-server', span[:n]