Merge pull request #134984 from blaggacao/fix-125992-2

fix 125992 2
This commit is contained in:
Jacek Galowicz 2021-08-20 22:06:53 +02:00 committed by GitHub
commit 6a29f7f504
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ with pkgs.lib;
testScript = ''
import os
import subprocess
import tempfile
image_dir = os.path.join(
os.environ.get("TMPDIR", tempfile.gettempdir()), "tmp", "vm-state-machine"

View File

@ -61,6 +61,7 @@ let
with subtest("Postgresql survives restart (bug #1735)"):
machine.shutdown()
import time
time.sleep(2)
machine.start()
machine.wait_for_unit("postgresql")

View File

@ -57,6 +57,7 @@ import ./make-test-python.nix ({ pkgs, lib, ... }: {
else:
if check_success():
return
import time
time.sleep(retry_sleep)
if not check_success():