forked from cybrespace/mastodon
		
	Fix intermittent test failures due to accidentally reused class instance between threads (#4287)
This commit is contained in:
		
							parent
							
								
									7bf7ed6123
								
							
						
					
					
						commit
						dbaa6a0e13
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -78,7 +78,7 @@ RSpec.describe ResolveRemoteAccountService do
 | 
				
			||||||
      Thread.new do
 | 
					      Thread.new do
 | 
				
			||||||
        true while wait_for_start
 | 
					        true while wait_for_start
 | 
				
			||||||
        begin
 | 
					        begin
 | 
				
			||||||
          return_values << subject.call('foo@localdomain.com')
 | 
					          return_values << ResolveRemoteAccountService.new.call('foo@localdomain.com')
 | 
				
			||||||
        rescue ActiveRecord::RecordNotUnique
 | 
					        rescue ActiveRecord::RecordNotUnique
 | 
				
			||||||
          fail_occurred = true
 | 
					          fail_occurred = true
 | 
				
			||||||
        end
 | 
					        end
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue