mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2025-10-03 09:49:32 +02:00
Improve shutdown in the test script
This commit is contained in:
parent
24563bdc4a
commit
21d7fa839f
3 changed files with 10 additions and 4 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue