1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-13 11:42:23 -05:00

Update models/git/commit_status_test.go

Typos
This commit is contained in:
FermeLeLundi 2024-11-28 10:15:54 +00:00
parent decb673f28
commit f0de20e747

View file

@ -400,14 +400,14 @@ func TestGetLatestCommitStatusForPairs(t *testing.T) {
}, pairs) }, pairs)
}) })
t.Run("Repo 62 nonexistant sha", func(t *testing.T) { t.Run("Repo 62 non-existent sha", func(t *testing.T) {
pairs, err := git_model.GetLatestCommitStatusForPairs(db.DefaultContext, []git_model.RepoSHA{{62, "774f93df12d14931ea93259ae93418da4482fcc"}}) pairs, err := git_model.GetLatestCommitStatusForPairs(db.DefaultContext, []git_model.RepoSHA{{62, "774f93df12d14931ea93259ae93418da4482fcc"}})
require.NoError(t, err) require.NoError(t, err)
assert.EqualValues(t, map[int64][]*git_model.CommitStatus{}, pairs) assert.EqualValues(t, map[int64][]*git_model.CommitStatus{}, pairs)
}) })
t.Run("SHA with non existant repo id", func(t *testing.T) { t.Run("SHA with non-existent repo id", func(t *testing.T) {
pairs, err := git_model.GetLatestCommitStatusForPairs(db.DefaultContext, []git_model.RepoSHA{{1, "774f93df12d14931ea93259ae93418da4482fcc1"}}) pairs, err := git_model.GetLatestCommitStatusForPairs(db.DefaultContext, []git_model.RepoSHA{{1, "774f93df12d14931ea93259ae93418da4482fcc1"}})
require.NoError(t, err) require.NoError(t, err)