diff options
author | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-08-05 10:58:41 +0300 |
---|---|---|
committer | Patrick Steinhardt <psteinhardt@gitlab.com> | 2022-08-05 11:07:31 +0300 |
commit | 1a81f65d298cefd4f813946f5927f360fb5d0d87 (patch) | |
tree | 28b5a40ae9b753ebd6341a0b176133dd4ed6ad82 | |
parent | d40efdcbdc0180e0d86681fe7ce4ca8fdec6767f (diff) |
lstree: Don't use seeded repository to test `ListEntries()`
We're using a seeded repository to test `ListEntries()` even though we
generate all test data at runtime anyway. Convert the tests to use
`gittest.InitRepo()` instead.
-rw-r--r-- | internal/git/lstree/list_entries_test.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/git/lstree/list_entries_test.go b/internal/git/lstree/list_entries_test.go index 939c72b81..c25c0fc24 100644 --- a/internal/git/lstree/list_entries_test.go +++ b/internal/git/lstree/list_entries_test.go @@ -14,10 +14,12 @@ import ( ) func TestListEntries(t *testing.T) { + t.Parallel() + cfg := testcfg.Build(t) ctx := testhelper.Context(t) - repoProto, repoPath := gittest.CloneRepo(t, cfg, cfg.Storages[0]) + repoProto, repoPath := gittest.InitRepo(t, cfg, cfg.Storages[0]) repo := localrepo.NewTestRepo(t, cfg, repoProto) blobID := gittest.WriteBlob(t, cfg, repoPath, []byte("blob contents")) |