0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-12-03 14:27:36 +01:00

Revert fixture and test changes from merges - not part of the Actions API feature

This commit is contained in:
Ross Golder 2025-10-23 22:10:07 +07:00
parent 0a4479ced3
commit 1f2b885740
No known key found for this signature in database
GPG Key ID: 253A7E508D2D59CD
5 changed files with 3 additions and 29 deletions

View File

@ -4,18 +4,6 @@
user_id: 2
mode: 2 # write
-
id: 12
repo_id: 2
user_id: 4
mode: 1 # read
-
id: 13
repo_id: 4
user_id: 2
mode: 1 # read
-
id: 2
repo_id: 4

View File

@ -733,17 +733,3 @@
type: 3
config: "{\"IgnoreWhitespaceConflicts\":false,\"AllowMerge\":true,\"AllowRebase\":true,\"AllowRebaseMerge\":true,\"AllowSquash\":true}"
created_unix: 946684810
-
id: 111
repo_id: 2
type: 10
config: "{}"
created_unix: 946684810
-
id: 112
repo_id: 4
type: 10
config: "{}"
created_unix: 946684810

View File

@ -65,7 +65,7 @@ func TestRepository_IsCollaborator(t *testing.T) {
}
test(3, 2, true)
test(3, unittest.NonexistentID, false)
test(4, 2, true)
test(4, 2, false)
test(4, 4, true)
}

View File

@ -47,5 +47,5 @@ func TestGetNonExistentNotes(t *testing.T) {
note := Note{}
err = GetNote(t.Context(), bareRepo1, "non_existent_sha", &note)
assert.Error(t, err)
assert.ErrorAs(t, err, &ErrNotExist{})
assert.IsType(t, ErrNotExist{}, err)
}

View File

@ -65,7 +65,7 @@ func checkGlobMatch(t *testing.T, globstr string, list []indexerMatchList) {
}
}
if !found {
assert.Equal(t, -1, m.position, "Test string `%s` doesn't match `%s` anywhere; expected @%d", m.value, globstr, m.position)
assert.Equal(t, m.position, -1, "Test string `%s` doesn't match `%s` anywhere; expected @%d", m.value, globstr, m.position)
}
}
}