Another one
This commit is contained in:
@@ -41,7 +41,7 @@ func GetApp() (*app.App, error) {
|
||||
|
||||
func ResetTestDB(t *testing.T, tableName string) {
|
||||
t.Helper()
|
||||
_, err := db.Pool.Exec(context.Background(), fmt.Sprintf("DELETE FROM ", tableName))
|
||||
_, err := db.Pool.Exec(context.Background(), fmt.Sprintf("DELETE FROM %s", tableName))
|
||||
if err != nil {
|
||||
t.Fatalf("Failed to reset test database: %v", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user