about summary refs log tree commit diff
path: root/spec
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-07-21 12:45:13 +0200
committerGitHub <noreply@github.com>2017-07-21 12:45:13 +0200
commitdbaa6a0e13b66ebd7cb0a622db55471f63da3d2f (patch)
treea32beb41ede849dfbd075f984fa7ce55fc6c8601 /spec
parent7bf7ed6123ad6e29f1356f58be0dbe89deed841b (diff)
Fix intermittent test failures due to accidentally reused class instance between threads (#4287)
Diffstat (limited to 'spec')
-rw-r--r--spec/services/resolve_remote_account_service_spec.rb2
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