mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2026-10-29 23:36:37 +00:00
refactor: review delete and new operators
This commit is contained in:
1 parent
397b523180
commit
95d5bb99c0
46 files changed
+175
-311
No files matched your search
@@ -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