diff options
author | Gusted <williamzijl7@hotmail.com> | 2021-12-21 04:12:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-20 22:12:27 -0500 |
commit | 273bef1be3e7512c90ff5cc60cd3b633ce1762b7 (patch) | |
tree | 73938a33db3c0ef9b5cbfce5d1b446408d48df2b /integrations/api_repo_lfs_test.go | |
parent | d8ae769ddaa46100dc4a21e8af159c6a0c091cd2 (diff) | |
download | gitea-273bef1be3e7512c90ff5cc60cd3b633ce1762b7.tar.gz gitea-273bef1be3e7512c90ff5cc60cd3b633ce1762b7.zip |
Fix continuance tests (#18027)
Diffstat (limited to 'integrations/api_repo_lfs_test.go')
-rw-r--r-- | integrations/api_repo_lfs_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/integrations/api_repo_lfs_test.go b/integrations/api_repo_lfs_test.go index 26f7e50f5b..947d157d5b 100644 --- a/integrations/api_repo_lfs_test.go +++ b/integrations/api_repo_lfs_test.go @@ -278,6 +278,10 @@ func TestAPILFSBatch(t *testing.T) { meta, err = models.GetLFSMetaObjectByOid(repo.ID, p.Oid) assert.NoError(t, err) assert.NotNil(t, meta) + + // Cleanup + err = contentStore.Delete(p.RelativePath()) + assert.NoError(t, err) }) t.Run("AlreadyExists", func(t *testing.T) { @@ -378,6 +382,10 @@ func TestAPILFSUpload(t *testing.T) { assert.NoError(t, err) assert.NotNil(t, meta) }) + + // Cleanup + err = contentStore.Delete(p.RelativePath()) + assert.NoError(t, err) }) t.Run("MetaAlreadyExists", func(t *testing.T) { |