summaryrefslogtreecommitdiffstats
path: root/integrations/api_repo_lfs_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'integrations/api_repo_lfs_test.go')
-rw-r--r--integrations/api_repo_lfs_test.go8
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) {