Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit ebab0e7

Browse files
author
Derik Evangelista
committed
fix(tests): remove the test breaking db isolation
This particular test breaks the DB isolation when running in parallel with other tests. It's also not strictly needed given the behaviour is in fact tested in other tests.
1 parent f4bd4bb commit ebab0e7

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

spec/unit/actions/service_credential_binding_create_spec.rb

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -51,20 +51,6 @@ module V3
5151
)
5252
end
5353

54-
it 'only creates one binding when creating bindings in parallel' do
55-
errors = []
56-
threads = 3.times.map do |i|
57-
Thread.new do
58-
action.precursor(service_instance, app: app, name: "binding-#{i}")
59-
rescue => e
60-
errors << e
61-
end
62-
end
63-
threads.each(&:join)
64-
expect(errors).to have(2).items
65-
expect(errors.map(&:message).uniq).to contain_exactly('The app is already bound to the service instance')
66-
end
67-
6854
it 'raises an error when a the app and the instance are in different spaces' do
6955
another_space = Space.make
7056
another_app = AppModel.make(space: another_space)

0 commit comments

Comments
 (0)