Bläddra i källkod

support/testing: libgpgme: increase gpg key generation timeout

gpg key generation can take longer than the default timeout on a
loaded or slow test host. The commit increase the timeout for the
key generation command to prevent the test to randomly fail.

Signed-off-by: Julien Olivain <ju.o@free.fr>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Julien Olivain 1 år sedan
förälder
incheckning
3efc611f53
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      support/testing/tests/package/test_libgpgme.py

+ 1 - 1
support/testing/tests/package/test_libgpgme.py

@@ -37,7 +37,7 @@ class TestLibGpgme(infra.basetest.BRTest):
         # We now create our gpg key.
         cmd = "gpg --batch --passphrase ''"
         cmd += f" --quick-generate-key {gpg_userid} default default"
-        self.assertRunOk(cmd)
+        self.assertRunOk(cmd, timeout=30)
 
         # We should now see our key in the list.
         self.assertRunOk(gpgme_listkey)