File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ import (
1010 "testing"
1111 "time"
1212
13+ "code.gitea.io/gitea/models"
14+
1315 "github.com/stretchr/testify/assert"
1416)
1517
@@ -20,13 +22,13 @@ func TestPullRequest_AddToTaskQueue(t *testing.T) {
2022 AddToTaskQueue (pr )
2123
2224 select {
23- case id := <- models . PullRequestQueue .Queue ():
25+ case id := <- pullRequestQueue .Queue ():
2426 assert .EqualValues (t , strconv .FormatInt (pr .ID , 10 ), id )
2527 case <- time .After (time .Second ):
2628 assert .Fail (t , "Timeout: nothing was added to pullRequestQueue" )
2729 }
2830
29- assert .True (t , models . PullRequestQueue .Exist (pr .ID ))
30- pr = AssertExistsAndLoadBean (t , & models.PullRequest {ID : 1 }).(* models.PullRequest )
31+ assert .True (t , pullRequestQueue .Exist (pr .ID ))
32+ pr = models . AssertExistsAndLoadBean (t , & models.PullRequest {ID : 1 }).(* models.PullRequest )
3133 assert .Equal (t , models .PullRequestStatusChecking , pr .Status )
3234}
You can’t perform that action at this time.
0 commit comments