Skip to content

Commit

Permalink
More liberal stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Feb 19, 2025
1 parent 553ec45 commit b2ec155
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/flipper/cloud/telemetry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@

expect(telemetry.interval).to eq(120)
expect(telemetry.timer.execution_interval).to eq(120)
expect(stub).to have_been_requested
expect(stub).to have_been_requested.at_least_once
end

it "phones home and requests shutdown if telemetry-shutdown header is true" do
Expand All @@ -67,7 +67,7 @@
result: true,
})
telemetry.stop
expect(stub).to have_been_requested
expect(stub).to have_been_requested.at_least_once
expect(output.string).to match(/action=telemetry_shutdown message=The server has requested that telemetry be shut down./)
end

Expand All @@ -90,7 +90,7 @@
result: true,
})
telemetry.stop
expect(stub).to have_been_requested
expect(stub).to have_been_requested.at_least_once
expect(output.string).not_to match(/action=telemetry_shutdown message=The server has requested that telemetry be shut down./)
end

Expand Down

0 comments on commit b2ec155

Please sign in to comment.