mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Drop MySQL tables after test when migration fails (#517)
This commit is contained in:
parent
3cd841051b
commit
627b1ad6e6
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue