mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Improve shutdown in the test script
This commit is contained in:
@@ -64,7 +64,11 @@ async function startMariadb() {
|
||||
}
|
||||
|
||||
return {
|
||||
shutdown: () => task.kill('SIGINT'),
|
||||
shutdown: () => {
|
||||
spawnAsync('mysql', ['-S', socketPath, '-u', 'root', '-e', 'SHUTDOWN;'], { stdio: 'inherit' }).catch((ex) => {
|
||||
console.warn(ex)
|
||||
})
|
||||
},
|
||||
socketPath,
|
||||
dataDir,
|
||||
database,
|
||||
|
||||
Reference in New Issue
Block a user