diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-12-02 11:15:36 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-02 11:15:36 +0800 |
commit | f7ade6de7c1c4991c650d6b96e6407053e6bdae7 (patch) | |
tree | 35a935e1d99b8254a892524dfd1ec6d27f492959 /tests | |
parent | 64973cf18fcd21179fb7612b15914691ee24c657 (diff) | |
download | gitea-f7ade6de7c1c4991c650d6b96e6407053e6bdae7.tar.gz gitea-f7ade6de7c1c4991c650d6b96e6407053e6bdae7.zip |
Fix generate index failure possibility on postgres (#21998)
@wxiaoguang Please review
Co-authored-by: silverwind <me@silverwind.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/integration/repo_commits_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/integration/repo_commits_test.go b/tests/integration/repo_commits_test.go index 3840c508dc..0d794cec75 100644 --- a/tests/integration/repo_commits_test.go +++ b/tests/integration/repo_commits_test.go @@ -135,8 +135,8 @@ func TestRepoCommitsStatusParallel(t *testing.T) { var wg sync.WaitGroup for i := 0; i < 10; i++ { wg.Add(1) - go func(t *testing.T, i int) { - t.Run(fmt.Sprintf("ParallelCreateStatus_%d", i), func(t *testing.T) { + go func(parentT *testing.T, i int) { + parentT.Run(fmt.Sprintf("ParallelCreateStatus_%d", i), func(t *testing.T) { runBody := doAPICreateCommitStatus(NewAPITestContext(t, "user2", "repo1"), path.Base(commitURL), api.CommitStatusState("pending")) runBody(t) wg.Done() |