From 3a823cf4871841fe205ef7a387c2fb67ac28bfc4 Mon Sep 17 00:00:00 2001 From: Luke Sanwick Date: Wed, 16 Dec 2020 10:20:10 -0800 Subject: [PATCH] test: fix transient test failure due to clock_gettime being called with unexpected arguments --- spec/apollo-studio-tracing/tracing_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/apollo-studio-tracing/tracing_spec.rb b/spec/apollo-studio-tracing/tracing_spec.rb index 64e6948fa..5f91bc22c 100644 --- a/spec/apollo-studio-tracing/tracing_spec.rb +++ b/spec/apollo-studio-tracing/tracing_spec.rb @@ -77,6 +77,8 @@ def clear_reports ns = 42 allow(Process).to receive(:clock_gettime) .with(Process::CLOCK_MONOTONIC, :nanosecond) { ns += 1 } + allow(Process).to receive(:clock_gettime) + .with(Process::CLOCK_MONOTONIC) { ns += 1 } end describe 'respecting options on context' do