Cleanup metadata tests

This commit replaces func returns with t.Cleanup,
which makes API and tests slightly easier to maintain.

Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
Maksym Pavlenko
2022-06-27 11:54:45 -07:00
parent 813780e443
commit d97b754a5b
9 changed files with 73 additions and 123 deletions

View File

@@ -29,8 +29,7 @@ import (
)
func TestCreateDelete(t *testing.T) {
ctx, db, cleanup := testDB(t)
defer cleanup()
ctx, db := testDB(t)
subtests := []struct {
name string