[education/rkward] rkward/autotests: Avoid false positive test timeout

Thomas Friedrichsmeier null at kde.org
Sun Feb 1 15:58:14 GMT 2026


Git commit bfee704f886588110cec21eb5cb91bfa8f4448c4 by Thomas Friedrichsmeier.
Committed on 01/02/2026 at 15:51.
Pushed by tfry into branch 'master'.

Avoid false positive test timeout

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

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

diff --git a/rkward/autotests/core_test.cpp b/rkward/autotests/core_test.cpp
index cec53ed37..1840d587d 100644
--- a/rkward/autotests/core_test.cpp
+++ b/rkward/autotests/core_test.cpp
@@ -523,6 +523,9 @@ 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
+		// also starting a plugin for the first time can take surprisingly long, so let's get that our of the way, too.
+		RInterface::issueCommand(new RCommand(QStringLiteral("rk.call.plugin('rkward::testing_run_code', 'codetorun.text'='print(\\\'done\\\')', submit.mode='submit')\n"), RCommand::App));
+		waitForAllFinished(10000);
 		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