diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-07-21 12:45:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-21 12:45:13 +0200 |
commit | dbaa6a0e13b66ebd7cb0a622db55471f63da3d2f (patch) | |
tree | a32beb41ede849dfbd075f984fa7ce55fc6c8601 /spec/services | |
parent | 7bf7ed6123ad6e29f1356f58be0dbe89deed841b (diff) |
Fix intermittent test failures due to accidentally reused class instance between threads (#4287)
Diffstat (limited to 'spec/services')
-rw-r--r-- | spec/services/resolve_remote_account_service_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/resolve_remote_account_service_spec.rb b/spec/services/resolve_remote_account_service_spec.rb index ab5d3c6e5..c3b902b34 100644 --- a/spec/services/resolve_remote_account_service_spec.rb +++ b/spec/services/resolve_remote_account_service_spec.rb @@ -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 |