Skip to content

Commit 293a390

Browse files
authored
Update gems (#466)
1 parent 1dab1fe commit 293a390

11 files changed

+42
-36
lines changed

Gemfile.lock

Lines changed: 15 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gemfiles/rails.gemfile.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gemfiles/redis_4.gemfile.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gemfiles/redis_5.gemfile.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gemfiles/redis_client.gemfile.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/adapters/grpc_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ def test_rpc_server_with_operation
7070

7171
def test_unavailable_server_opens_the_circuit
7272
GRPC::ActiveCall.any_instance.stubs(:request_response).raises(::GRPC::Unavailable)
73+
7374
ERROR_THRESHOLD.times do
7475
assert_raises(::GRPC::Unavailable) do
7576
@stub.an_rpc(EchoMsg.new)
@@ -204,6 +205,7 @@ def test_bulkheads_tickets_are_working
204205
stub1 = build_insecure_stub(EchoStub)
205206
stub1.semian_resource.acquire do
206207
stub2 = build_insecure_stub(EchoStub, host: "0.0.0.1")
208+
207209
stub2.semian_resource.acquire do
208210
assert_raises(GRPC::ResourceBusyError) do
209211
stub2.an_rpc(EchoMsg.new)

test/adapters/mysql2_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def test_connection_errors_open_the_circuit
5454

5555
def test_query_errors_does_not_open_the_circuit
5656
client = connect_to_mysql!
57+
5758
(ERROR_THRESHOLD * 2).times do
5859
assert_raises(::Mysql2::Error) do
5960
client.query("ERROR!")

test/adapters/net_http_test.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def test_bulkheads_tickets_are_working
111111
http_1 = Net::HTTP.new(SemianConfig["toxiproxy_upstream_host"], SemianConfig["http_toxiproxy_port"])
112112
http_1.semian_resource.acquire do
113113
http_2 = Net::HTTP.new(SemianConfig["toxiproxy_upstream_host"], SemianConfig["http_toxiproxy_port"])
114+
114115
http_2.semian_resource.acquire do
115116
assert_raises(Net::ResourceBusyError) do
116117
Net::HTTP.get(URI("http://#{SemianConfig["toxiproxy_upstream_host"]}:#{SemianConfig["http_toxiproxy_port"]}/"))
@@ -232,6 +233,7 @@ def test_custom_raw_semian_options_can_only_assign_once
232233
semian_configuration_proc = proc do |host, port|
233234
DEFAULT_SEMIAN_OPTIONS.merge(name: "#{host}_#{port}")
234235
end
236+
235237
with_semian_configuration(semian_configuration_proc) do
236238
assert_raises(Semian::NetHTTP::SemianConfigurationChangedError) do
237239
Semian::NetHTTP.semian_configuration = semian_configuration_proc
@@ -320,6 +322,7 @@ def test_use_custom_configuration_to_combine_endpoints_into_one_resource
320322
with_server do
321323
open_circuit!
322324
end
325+
323326
with_server(
324327
ports: [SemianConfig["http_port_service_a"], SemianConfig["http_port_service_b"]],
325328
reset_semian_state: false,

test/adapters/redis_client_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def test_connection_reset_does_not_open_the_circuit
9494
def test_command_errors_does_not_open_the_circuit
9595
client = connect_to_redis!
9696
client.call("HSET", "my_hash", "foo", "bar")
97+
9798
(ERROR_THRESHOLD * 2).times do
9899
assert_raises(RedisClient::CommandError) do
99100
client.call("GET", "my_hash")

test/adapters/redis_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def test_connection_reset_does_not_open_the_circuit
9696
def test_command_errors_does_not_open_the_circuit
9797
client = connect_to_redis!
9898
client.hset("my_hash", "foo", "bar")
99+
99100
(ERROR_THRESHOLD * 2).times do
100101
assert_raises(Redis::CommandError) do
101102
client.get("my_hash")

test/lru_hash_test.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,6 @@ def test_monotonically_increasing
172172
# At this point, the table looks like: [a, c, b, d, e]
173173
assert_equal(notification, payload[:size])
174174
assert_equal(3, payload[:examined])
175-
else
176-
assert_nil(true)
177175
end
178176
end
179177

0 commit comments

Comments
 (0)