Commit 23ff7d5a authored by Kurt Hindenburg's avatar Kurt Hindenburg
Browse files

Increase test wait to avoid failures after 416941b7

416941b7 changed the snapshot to 2000ms which caused this test to
fail periodically.  So increase the wait in the test.

(cherry picked from commit f7a05efa)
parent 80f33b01
Pipeline #205809 passed with stage
in 2 minutes and 42 seconds
......@@ -137,7 +137,7 @@ void TerminalInterfaceTest::testTerminalInterface()
// #1A - Test signal currentDirectoryChanged(QString)
currentDirectory = QStringLiteral("/tmp");
terminal->sendInput(QStringLiteral("cd ") + currentDirectory + QLatin1Char('\n'));
stateSpy.wait(2000);
stateSpy.wait(5000);
QCOMPARE(stateSpy.count(), 1);
// Correct result?
......@@ -155,7 +155,7 @@ void TerminalInterfaceTest::testTerminalInterface()
// #1B - Test signal currentDirectoryChanged(QString)
// Invalid directory - no signal should be emitted
terminal->sendInput(QStringLiteral("cd /usrADADFASDF\n"));
stateSpy.wait(2000);
stateSpy.wait(2500);
QCOMPARE(stateSpy.count(), 0);
// Should be no change since the above cd didn't work
......@@ -165,7 +165,7 @@ void TerminalInterfaceTest::testTerminalInterface()
// Test starting a new program
QString command = QStringLiteral("top");
terminal->sendInput(command + QLatin1Char('\n'));
stateSpy.wait(2000);
stateSpy.wait(2500);
// FIXME: find a good way to validate process id of 'top'
foregroundProcessId = terminal->foregroundProcessId();
QVERIFY(foregroundProcessId != -1);
......@@ -173,7 +173,7 @@ void TerminalInterfaceTest::testTerminalInterface()
QCOMPARE(foregroundProcessName, command);
terminal->sendInput(QStringLiteral("q"));
stateSpy.wait(2000);
stateSpy.wait(2500);
// Nothing running in foreground
foregroundProcessId = terminal->foregroundProcessId();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment