[education/rkward] rkward/autotests: Make test less prone to false timeout

Thomas Friedrichsmeier null at kde.org
Sun Sep 14 19:26:16 BST 2025


Git commit e577818602d8d89a82922083112aaef491302a22 by Thomas Friedrichsmeier.
Committed on 11/09/2025 at 18:23.
Pushed by tfry into branch 'master'.

Make test less prone to false timeout

M  +1    -0    rkward/autotests/core_test.cpp

https://invent.kde.org/education/rkward/-/commit/e577818602d8d89a82922083112aaef491302a22

diff --git a/rkward/autotests/core_test.cpp b/rkward/autotests/core_test.cpp
index 8dbb4ed32..de8a9a69f 100644
--- a/rkward/autotests/core_test.cpp
+++ b/rkward/autotests/core_test.cpp
@@ -476,6 +476,7 @@ class RKWardCoreTest : public QObject {
 	}
 
 	void cancelNestedCommandTest() {
+		RKWorkplace::mainWorkplace()->openOutputWindow(QUrl()); // this may take a long time on a crowded CI, so preload before entering timeouts
 		auto dotest = [this](int command_flags) {
 			// Create a command that spawns a subcommand, then cancel both
 			auto c = new RCommand(QStringLiteral("print('outerpre')\nrk.call.plugin('rkward::testing_run_code', 'codetorun.text'='print(\\\'innerpre\\\');Sys.sleep(5);print(\\\'innerpost\\\')', submit.mode='submit')\nSys.sleep(5)\nprint('outerpost')"), command_flags);



More information about the rkward-tracker mailing list