Skip to content

Commit

Permalink
Test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
a-maas committed Mar 21, 2024
1 parent 81f65c6 commit f6f587e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
7 changes: 6 additions & 1 deletion test/integration_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@

after do
# Reset Circuitbox
Circuitbox.configure { |config| config.default_circuit_store = Circuitbox::MemoryStore.new }
if Circuitbox.method_defined?(:reset)
Circuitbox.reset
else
Circuitbox.configure { |config| config.default_circuit_store = Circuitbox::MemoryStore.new }
end

VertexClient.reconfigure!
end

Expand Down
12 changes: 8 additions & 4 deletions test/vertex_client_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,16 +44,20 @@

describe 'circuit' do
before do
Circuitbox.configure do |config|
config.default_circuit_store = Circuitbox::MemoryStore.new
if Circuitbox.method_defined?(:reset)
Circuitbox.reset
else
Circuitbox.configure { |config| config.default_circuit_store = Circuitbox::MemoryStore.new }
end

VertexClient.reconfigure!
end

after do
Circuitbox.configure do |config|
config.default_circuit_store = Circuitbox::MemoryStore.new
if Circuitbox.method_defined?(:reset)
Circuitbox.reset
else
Circuitbox.configure { |config| config.default_circuit_store = Circuitbox::MemoryStore.new }
end

VertexClient.reconfigure!
Expand Down

0 comments on commit f6f587e

Please sign in to comment.