mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-11-12 13:47:53 +00:00
ci: confirm the directory's schema migration when the test directory starts
The database is created by the CLI, so the service's own migration (20250924_directory_schema) asked for confirmation on stdin and the service exited. This run tests that the directory starts and the group and channel get listed.
This commit is contained in:
1 parent
2ebad19b21
commit
d041eebe6b
1 file changed
+2
-1
@@ -87,7 +87,8 @@ create_directory() {
|
||||
}
|
||||
|
||||
start_directory() {
|
||||
nohup "$bin/simplex-directory-service" -d "$work/directory" --super-users "2:$admin" < /dev/null > "$work/directory.log" 2>&1 &
|
||||
# -y: the service adds its own tables to the database the CLI created, and would otherwise ask on stdin
|
||||
nohup "$bin/simplex-directory-service" -d "$work/directory" -y --super-users "2:$admin" < /dev/null > "$work/directory.log" 2>&1 &
|
||||
echo $! > "$work/directory.pid"
|
||||
sleep 5
|
||||
if ! kill -0 "$(cat "$work/directory.pid")" 2> /dev/null; then
|
||||
|
||||
Reference in new issue
Block a user