diff options
author | 6543 <6543@obermui.de> | 2021-04-16 20:30:16 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 20:30:16 +0200 |
commit | a67861b4dc7809e025240f18a5d60b10c6dcd6b5 (patch) | |
tree | 691dbe44218d10b930b978e40745b872d8fe59a6 /integrations/git_helper_for_declarative_test.go | |
parent | c29e85228ff3b524cbe0cd4c8893109c4facc022 (diff) | |
download | gitea-a67861b4dc7809e025240f18a5d60b10c6dcd6b5.tar.gz gitea-a67861b4dc7809e025240f18a5d60b10c6dcd6b5.zip |
Fix Benchmark tests, remove a broken one & add two new (#15250)
* Benchmark Integration TESTS
* CI: add benching-arm64 pipeline
* BenchmarkRepo: name test case tests
* Fix BenchmarkRepoBranchCommit beside Create new Branch
* CI: benching use amd64
* rm total broken "BenchmarkRepo"
* dont run benchmark in CI
Diffstat (limited to 'integrations/git_helper_for_declarative_test.go')
-rw-r--r-- | integrations/git_helper_for_declarative_test.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/integrations/git_helper_for_declarative_test.go b/integrations/git_helper_for_declarative_test.go index d99d80a7c7..5a5b1314c6 100644 --- a/integrations/git_helper_for_declarative_test.go +++ b/integrations/git_helper_for_declarative_test.go @@ -76,7 +76,7 @@ func allowLFSFilters() []string { return filteredLFSGlobalArgs[:j] } -func onGiteaRun(t *testing.T, callback func(*testing.T, *url.URL), prepare ...bool) { +func onGiteaRunTB(t testing.TB, callback func(testing.TB, *url.URL), prepare ...bool) { if len(prepare) == 0 || prepare[0] { defer prepareTestEnv(t, 1)() } @@ -108,6 +108,12 @@ func onGiteaRun(t *testing.T, callback func(*testing.T, *url.URL), prepare ...bo callback(t, u) } +func onGiteaRun(t *testing.T, callback func(*testing.T, *url.URL), prepare ...bool) { + onGiteaRunTB(t, func(t testing.TB, u *url.URL) { + callback(t.(*testing.T), u) + }, prepare...) +} + func doGitClone(dstLocalPath string, u *url.URL) func(*testing.T) { return func(t *testing.T) { assert.NoError(t, git.CloneWithArgs(context.Background(), u.String(), dstLocalPath, allowLFSFilters(), git.CloneRepoOptions{})) |