]> cat aescling's git repositories - mastodon.git/commitdiff
Fix intermittent test failures due to accidentally reused class instance between...
authorEugen Rochko <eugen@zeonfederated.com>
Fri, 21 Jul 2017 10:45:13 +0000 (12:45 +0200)
committerGitHub <noreply@github.com>
Fri, 21 Jul 2017 10:45:13 +0000 (12:45 +0200)
spec/services/resolve_remote_account_service_spec.rb

index ab5d3c6e532a3bbbdb85f0a0f932e63ce338f970..c3b902b3442c6dbc0f40b8c59c061852306fce38 100644 (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