Browse Source

Fix intermittent test failures due to accidentally reused class instance between threads (#4287)

pull/4/head
Eugen Rochko 6 years ago
committed by GitHub
parent
commit
dbaa6a0e13
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      spec/services/resolve_remote_account_service_spec.rb

+ 1
- 1
spec/services/resolve_remote_account_service_spec.rb View File

@ -78,7 +78,7 @@ RSpec.describe ResolveRemoteAccountService do
Thread.new do
true while wait_for_start
begin
return_values << subject.call('foo@localdomain.com')
return_values << ResolveRemoteAccountService.new.call('foo@localdomain.com')
rescue ActiveRecord::RecordNotUnique
fail_occurred = true
end

Loading…
Cancel
Save