Fix continuance tests (#18027)

This commit is contained in:
Gusted 2021-12-21 04:12:27 +01:00 committed by GitHub
parent d8ae769dda
commit 273bef1be3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 56 additions and 0 deletions

View file

@ -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) {