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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user