mirror of
				https://github.com/superseriousbusiness/gotosocial
				synced 2025-06-05 21:59:39 +02:00 
			
		
		
		
	[chore] Update move test (#3005)
This commit is contained in:
		| @@ -627,12 +627,17 @@ func (suite *FromFediAPITestSuite) TestMoveAccount() { | |||||||
| 	}) | 	}) | ||||||
| 	suite.NoError(err) | 	suite.NoError(err) | ||||||
|  |  | ||||||
|  | 	// Wait for side effects to trigger: | ||||||
| 	// Zork should now be following admin account. | 	// Zork should now be following admin account. | ||||||
| 	follows, err := testStructs.State.DB.IsFollowing(ctx, receivingAcct.ID, targetAcct.ID) | 	if !testrig.WaitFor(func() bool { | ||||||
| 	if err != nil { | 		follows, err := testStructs.State.DB.IsFollowing(ctx, receivingAcct.ID, targetAcct.ID) | ||||||
| 		suite.FailNow(err.Error()) | 		if err != nil { | ||||||
|  | 			suite.FailNow(err.Error()) | ||||||
|  | 		} | ||||||
|  | 		return follows | ||||||
|  | 	}) { | ||||||
|  | 		suite.FailNow("timed out waiting for zork to follow admin account") | ||||||
| 	} | 	} | ||||||
| 	suite.True(follows) |  | ||||||
|  |  | ||||||
| 	// Move should be in the DB. | 	// Move should be in the DB. | ||||||
| 	move, err := testStructs.State.DB.GetMoveByURI(ctx, "https://fossbros-anonymous.io/users/foss_satan/moves/01HRA064871MR8HGVSAFJ333GM") | 	move, err := testStructs.State.DB.GetMoveByURI(ctx, "https://fossbros-anonymous.io/users/foss_satan/moves/01HRA064871MR8HGVSAFJ333GM") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user