Drop MySQL tables after test when migration fails (#517)

This commit is contained in:
Zachary Wasserman 2016-11-18 11:14:10 -08:00 committed by GitHub
parent 3cd841051b
commit 627b1ad6e6

View file

@ -50,8 +50,8 @@ func TestMySQL(t *testing.T) {
for _, f := range testFunctions {
t.Run(functionName(f), func(t *testing.T) {
require.Nil(t, ds.Migrate())
defer func() { require.Nil(t, ds.Drop()) }()
require.Nil(t, ds.Migrate())
f(t, ds)
})