Skip to content

Commit

Permalink
fix: specs
Browse files Browse the repository at this point in the history
  • Loading branch information
aryascripts committed Oct 28, 2024
1 parent 72e9da0 commit 8aa6edb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spec/graphql/graphql-hive/usage_reporter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

RSpec.describe GraphQL::Hive::UsageReporter do
let(:usage_reporter_instance) { described_class.new(options, client) }
let(:options) { {logger: logger} }
let(:options) { {logger: logger, buffer_size: 1, bounded_queue_multiple: 1} }
let(:logger) { instance_double("Logger") }
let(:client) { instance_double("Hive::Client") }

Expand Down Expand Up @@ -32,7 +32,7 @@
expect(usage_reporter_instance.instance_variable_get(:@client)).to eq(client)

expect(usage_reporter_instance.instance_variable_get(:@options_mutex)).to be_an_instance_of(Mutex)
expect(usage_reporter_instance.instance_variable_get(:@queue)).to be_an_instance_of(Queue)
expect(usage_reporter_instance.instance_variable_get(:@queue)).to be_an_instance_of(GraphQL::Hive::BoundedQueue)
expect(usage_reporter_instance.instance_variable_get(:@sampler)).to be_an_instance_of(GraphQL::Hive::Sampler)
end
end
Expand Down Expand Up @@ -76,7 +76,8 @@
let(:options) do
{
logger: logger,
buffer_size: 1
buffer_size: 1,
bounded_queue_multiple: 1,

Check failure on line 80 in spec/graphql/graphql-hive/usage_reporter_spec.rb

View workflow job for this annotation

GitHub Actions / standard

Style/TrailingCommaInHashLiteral: Avoid comma after the last item of a hash.
}
end

Expand Down

0 comments on commit 8aa6edb

Please sign in to comment.