mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-09 19:13:26 +03:00
nixos/tests/pleroma: fix DB provision race condition
We originally used a systemd preStart command to provision the DB. We recently extracted this to a proper systemd unit (to go around the timeout issue). This created a race condition in the VM test. Restarting explicitely the db provision unit to make sure the migrations are applied.
This commit is contained in:
parent
66639d6a7e
commit
6d892712cf
1 changed files with 1 additions and 0 deletions
|
@ -271,6 +271,7 @@ import ./make-test-python.nix (
|
|||
pleroma.succeed("provision-db")
|
||||
pleroma.wait_for_file("/var/lib/pleroma")
|
||||
pleroma.succeed("provision-secrets")
|
||||
pleroma.systemctl("restart pleroma-migrations.service")
|
||||
pleroma.systemctl("restart pleroma.service")
|
||||
pleroma.wait_for_unit("pleroma.service")
|
||||
pleroma.succeed("provision-user")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue