db: add tests for authentication through login sources (#7049)

This commit is contained in:
Joe Chen
2022-06-12 10:34:12 +08:00
committed by GitHub
parent 63cb76106a
commit 2e19f5a3c8
13 changed files with 5300 additions and 4560 deletions

View File

@@ -83,7 +83,7 @@ func Test_serveBatch(t *testing.T) {
{"oid": "5cac0a318669fadfee734fb340a5f5b70b428ac57a9f4b109cb6e150b2ba7e57", "size": 456}
]}`,
mockLFSStore: func() db.LFSStore {
mock := db.NewMockLFSStore()
mock := NewMockLFSStore()
mock.GetObjectsByOIDsFunc.SetDefaultReturn(
[]*db.LFSObject{
{