From 3518a1d4cdd5b366d91726b654fcabf66da27ec7 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Mon, 2 Oct 2023 17:08:42 +0200 Subject: [PATCH] [SEMVER] store SemVer in ForgejoSemVer after a database upgrade https://codeberg.org/forgejo/forgejo/pulls/1543 (cherry picked from commit 6146ef6263893cc367e8504de8e80f78231d2f49) (cherry picked from commit 45b9005ad935b20b56be6c404391ff2932875035) (cherry picked from commit 4622cc5cc4764afe01a2dc6e1d56c8b73d7f70c6) (cherry picked from commit ed39cdc54cda89bf864b8e09d555751909af651d) (cherry picked from commit b837dbd434659ee5bf769dd9b30b6be062453698) (cherry picked from commit a0abe20b1bb4808805796b9073719fea60325443) (cherry picked from commit 6f5c2f902e5c2ddaf6bed6909da9e2b4d864aa36) (cherry picked from commit efbae03e021bad051e685ca702265212c2d58c32) (cherry picked from commit a763b5949f8be1317e0b25d7c5b093d33a3f5216) (cherry picked from commit d611dc07ac34033c63802625f13795c4fbe25282) (cherry picked from commit f31264ab575ea4f973f1714af3f628b57c20a5fa) (cherry picked from commit a32a1fcd949ab349902074ea9719602277f95ff4) (cherry picked from commit 568711e1034df110c212517964654b4270583ea8) (cherry picked from commit 80ef96485716fc1f339b97139ddd9c749d9b7526) (cherry picked from commit 66af8f2ae877b1dff82f724ebc9e5ab231bbb282) (cherry picked from commit 7a1c9fa23623b57943c5c377ec8a43bac14c5539) (cherry picked from commit f140388ae451cd0ca028bec57a038284b2da353c) --- models/forgejo/semver/main_test.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/models/forgejo/semver/main_test.go b/models/forgejo/semver/main_test.go index 34c4f55395..fa56182627 100644 --- a/models/forgejo/semver/main_test.go +++ b/models/forgejo/semver/main_test.go @@ -3,7 +3,6 @@ package semver import ( - "path/filepath" "testing" "code.gitea.io/gitea/models/unittest" @@ -14,7 +13,5 @@ import ( ) func TestMain(m *testing.M) { - unittest.MainTest(m, &unittest.TestOptions{ - GiteaRootPath: filepath.Join("..", "..", ".."), - }) + unittest.MainTest(m) }