From e42bcbe49f1ef6f9cd6e8aa89ef95a32b5f3ad09 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 30 Mar 2022 15:29:49 +0000 Subject: [PATCH] tests: Break after exporting 1000 networks Otherwise this test runs for forever Signed-off-by: Michael Tremer --- tests/python/test-export.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/python/test-export.py b/tests/python/test-export.py index cef87b3..419b105 100755 --- a/tests/python/test-export.py +++ b/tests/python/test-export.py @@ -41,7 +41,11 @@ class Test(unittest.TestCase): """ Lists all networks but flattened """ - for network in self.db.networks_flattened: + for i, network in enumerate(self.db.networks_flattened): + # Break after the first 1000 iterations + if i >= 1000: + break + print(network) -- 2.39.5