Skip to content

Commit

Permalink
[test] fixed test tooling
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoot committed Jun 9, 2017
1 parent 6f39962 commit 1d4cfcd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test/concurrent_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def traced_task
# and the instant the root span is done.
sleep delay
end
@tracer.writer.spans()
@tracer.writer.trace0_spans()
end

def test_parallel_tasks
Expand Down
7 changes: 7 additions & 0 deletions test/helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ def spans
spans.flatten
end

def trace0_spans
return [] if @spans.empty?
spans = @spans[0]
@spans = @spans[1..@spans.size]
spans
end

def services
services = @services
@services = []
Expand Down

0 comments on commit 1d4cfcd

Please sign in to comment.