Skip to content

Commit

Permalink
Add missing test assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
ivoanjo committed Oct 27, 2021
1 parent b47bdbb commit e1c4fa3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions spec/ddtrace/profiling/native_extension_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ def wait_for_thread_to_die

before { wait_for_thread_to_die }

it 'returns nil' do
cpu_time_ns_for
end
it { is_expected.to be nil }
end

context 'when called with a thread that dies between getting the clock_id and getting the cpu time' do
Expand All @@ -167,9 +165,7 @@ def wait_for_thread_to_die
end
end

it 'returns nil' do
cpu_time_ns_for
end
it { is_expected.to be nil }
end
end

Expand Down

0 comments on commit e1c4fa3

Please sign in to comment.