mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
fix: Extend migration fixture test with down and fix 000045 (#6130)
This commit is contained in:
@@ -331,6 +331,10 @@ func TestMigrateUpWithFixtures(t *testing.T) {
|
||||
s.Add(table, count)
|
||||
}
|
||||
}
|
||||
|
||||
// Test that migration down is successful after up.
|
||||
err = migrations.Down(db)
|
||||
require.NoError(t, err, "final migration down should be successful")
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user