Fix intermittent test failures due to accidentally reused class instance between threads (#4287)
This commit is contained in:
		| @ -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 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user