Skip to content

Commit

Permalink
NOISSUE fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Nov 26, 2018
1 parent 3f6aecf commit 9eb4563
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions api/logic/minecraft/Library_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private
test.setHint("local");
auto downloads = test.getDownloads(currentSystem, cache.get(), failedFiles, QString());
QCOMPARE(downloads.size(), 0);
QCOMPARE(failedFiles, getStorage("test/package/testname/testversion/testname-testversion.jar"));
QCOMPARE(failedFiles, {"testname-testversion.jar"});
}
void test_legacy_url_local_override()
{
Expand Down Expand Up @@ -174,7 +174,7 @@ private
QStringList failedFiles;
auto dls = test.getDownloads(Os_Linux, cache.get(), failedFiles, QString("data"));
QCOMPARE(dls.size(), 0);
QCOMPARE(failedFiles, {getStorage("test/package/testname/testversion/testname-testversion-linux-64.jar")});
QCOMPARE(failedFiles, {"data/testname-testversion-linux-64.jar"});
}
}
void test_onenine()
Expand Down
9 changes: 5 additions & 4 deletions api/logic/updater/UpdateChecker_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ QDebug operator<<(QDebug dbg, const UpdateChecker::ChannelListEntry &c)
return dbg.maybeSpace();
}

QString findTestDataUrl(const char *file)
{
return QUrl::fromLocalFile(QFINDTESTDATA(file)).toString();
}

class UpdateCheckerTest : public QObject
{
Q_OBJECT
Expand All @@ -35,10 +40,6 @@ private

}

static QString findTestDataUrl(const char *file)
{
return QUrl::fromLocalFile(QFINDTESTDATA(file)).toString();
}
void tst_ChannelListParsing_data()
{
QTest::addColumn<QString>("channel");
Expand Down

0 comments on commit 9eb4563

Please sign in to comment.