mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-07-10 04:15:51 +00:00
refactor: review delete and new operators
This commit is contained in:
@ -27,7 +27,7 @@ void TestAWTelemetryHandler::initTestCase()
|
||||
{
|
||||
AWTestLibrary::init();
|
||||
plugin = new AWTelemetryHandler(this);
|
||||
plugin->init(1, true, telemetryId);
|
||||
plugin->init(1, telemetryId);
|
||||
telemetryData = AWTestLibrary::randomString();
|
||||
telemetryGroup = AWTestLibrary::randomString();
|
||||
}
|
||||
@ -61,18 +61,4 @@ void TestAWTelemetryHandler::test_getLast()
|
||||
}
|
||||
|
||||
|
||||
void TestAWTelemetryHandler::test_uploadTelemetry()
|
||||
{
|
||||
QSKIP("Remote telemetry is disabled at the moment");
|
||||
|
||||
QSignalSpy spy(plugin, SIGNAL(replyReceived(const QString &)));
|
||||
plugin->uploadTelemetry(telemetryValidGroup, telemetryData);
|
||||
|
||||
QVERIFY(spy.wait(5000));
|
||||
auto arguments = spy.takeFirst();
|
||||
|
||||
QCOMPARE(arguments.at(0).toString(), telemetryStatus);
|
||||
}
|
||||
|
||||
|
||||
QTEST_MAIN(TestAWTelemetryHandler);
|
||||
|
@ -34,7 +34,6 @@ private slots:
|
||||
void test_put();
|
||||
void test_get();
|
||||
void test_getLast();
|
||||
void test_uploadTelemetry();
|
||||
|
||||
private:
|
||||
AWTelemetryHandler *plugin = nullptr;
|
||||
|
Reference in New Issue
Block a user