aboutsummaryrefslogtreecommitdiff
path: root/src/mailman_pgp/runners
diff options
context:
space:
mode:
authorJ08nY2017-07-07 17:36:12 +0200
committerJ08nY2017-07-07 17:36:12 +0200
commit45174af3b9b410102022cb5c335e42c7e0052b19 (patch)
tree346fd6ccad4c5abe548eb71a819f390d31974403 /src/mailman_pgp/runners
parent6b627e130ad1a2fa453045b76b8f9a08e9520c34 (diff)
downloadmailman-pgp-45174af3b9b410102022cb5c335e42c7e0052b19.tar.gz
mailman-pgp-45174af3b9b410102022cb5c335e42c7e0052b19.tar.zst
mailman-pgp-45174af3b9b410102022cb5c335e42c7e0052b19.zip
Simplify key generation.
Diffstat (limited to 'src/mailman_pgp/runners')
-rw-r--r--src/mailman_pgp/runners/tests/test_incoming.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mailman_pgp/runners/tests/test_incoming.py b/src/mailman_pgp/runners/tests/test_incoming.py
index f879bc5..e3ceb67 100644
--- a/src/mailman_pgp/runners/tests/test_incoming.py
+++ b/src/mailman_pgp/runners/tests/test_incoming.py
@@ -14,7 +14,6 @@
#
# You should have received a copy of the GNU General Public License along with
# this program. If not, see <http://www.gnu.org/licenses/>.
-from time import sleep
from unittest import TestCase
from mailman.app.lifecycle import create_list
@@ -49,8 +48,7 @@ class TestIncoming(TestCase):
self.mlist.subscribe(self.sender, MemberRole.member)
self.pgp_list = PGPMailingList.for_list(self.mlist)
- while self.pgp_list.pubkey is None:
- sleep(1)
+ self.pgp_list.generate_key(True)
sender_key = load_key('data/rsa_1024.pub.asc')
with transaction() as t: