mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Improve performance of dashboard (#4977)
This commit is contained in:
		
				
					committed by
					
						 techknowlogick
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							49ea6e0deb
						
					
				
				
					commit
					b3b7598ec6
				
			| @@ -19,8 +19,11 @@ func TestCreateIssueDependency(t *testing.T) { | ||||
|  | ||||
| 	issue1, err := GetIssueByID(1) | ||||
| 	assert.NoError(t, err) | ||||
| 	issue1.LoadAttributes() | ||||
|  | ||||
| 	issue2, err := GetIssueByID(2) | ||||
| 	assert.NoError(t, err) | ||||
| 	issue2.LoadAttributes() | ||||
|  | ||||
| 	// Create a dependency and check if it was successful | ||||
| 	err = CreateIssueDependency(user1, issue1, issue2) | ||||
| @@ -44,7 +47,7 @@ func TestCreateIssueDependency(t *testing.T) { | ||||
| 	assert.False(t, left) | ||||
|  | ||||
| 	// Close #2 and check again | ||||
| 	err = issue2.ChangeStatus(user1, issue2.Repo, true) | ||||
| 	err = issue2.ChangeStatus(user1, true) | ||||
| 	assert.NoError(t, err) | ||||
|  | ||||
| 	left, err = IssueNoDependenciesLeft(issue1) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user