[education/rkward] rkward/autotests: Avoid timeout
Thomas Friedrichsmeier
null at kde.org
Sat Oct 29 13:03:15 BST 2022
Git commit e73e175c41a28586529e21f7b8e5e7e71e26b314 by Thomas Friedrichsmeier.
Committed on 29/10/2022 at 12:03.
Pushed by tfry into branch 'master'.
Avoid timeout
M +2 -2 rkward/autotests/core_test.cpp
https://invent.kde.org/education/rkward/commit/e73e175c41a28586529e21f7b8e5e7e71e26b314
diff --git a/rkward/autotests/core_test.cpp b/rkward/autotests/core_test.cpp
index 64e21384..be25be0c 100644
--- a/rkward/autotests/core_test.cpp
+++ b/rkward/autotests/core_test.cpp
@@ -194,7 +194,7 @@ private slots:
});
bool lock = true;
- runCommandAsync(new RCommand("dx <- data.frame(a=1:2, b=3:4)", RCommand::User), nullptr, [this, &lock](RCommand *command) {
+ runCommandAsync(new RCommand("dx <- data.frame(a=1:2, b=3:4)", RCommand::User), nullptr, [this, &lock](RCommand *) {
auto dx = RObjectList::getGlobalEnv()->findObject("dx");
QVERIFY(dx != nullptr);
QVERIFY(dx->isContainer());
@@ -207,7 +207,7 @@ private slots:
dx->rename("dy");
}
auto c = new RCommand("dy$c", RCommand::GetIntVector);
- runCommandWithTimeout(c, nullptr, [](RCommand *command) {
+ runCommandAsync(c, nullptr, [](RCommand *command) {
QCOMPARE(command->getDataType(), RData::IntVector);
QCOMPARE(command->getDataLength(), 2);
QCOMPARE(command->intVector().value(1), 2);
More information about the rkward-tracker
mailing list