summaryrefslogtreecommitdiffstats
path: root/tests/tst_UpdateChecker.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2016-04-13 01:24:55 +0200
committerPetr Mrázek <peterix@gmail.com>2016-05-01 00:01:39 +0200
commite8ba5dafc63de65ed8a469353b808e391633f0fc (patch)
tree1e7d8c340bd68ae339904dde867875226f10b150 /tests/tst_UpdateChecker.cpp
parented3884fd38c26185522248994c79c9525b8892ad (diff)
downloadMultiMC-e8ba5dafc63de65ed8a469353b808e391633f0fc.tar
MultiMC-e8ba5dafc63de65ed8a469353b808e391633f0fc.tar.gz
MultiMC-e8ba5dafc63de65ed8a469353b808e391633f0fc.tar.lz
MultiMC-e8ba5dafc63de65ed8a469353b808e391633f0fc.tar.xz
MultiMC-e8ba5dafc63de65ed8a469353b808e391633f0fc.zip
NOISSUE remove dead unit tests and reorganize CMake code related to unit tests
Diffstat (limited to 'tests/tst_UpdateChecker.cpp')
-rw-r--r--tests/tst_UpdateChecker.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/tst_UpdateChecker.cpp b/tests/tst_UpdateChecker.cpp
index de1ad718..3a0d3781 100644
--- a/tests/tst_UpdateChecker.cpp
+++ b/tests/tst_UpdateChecker.cpp
@@ -8,6 +8,7 @@ Q_DECLARE_METATYPE(UpdateChecker::ChannelListEntry)
bool operator==(const UpdateChecker::ChannelListEntry &e1, const UpdateChecker::ChannelListEntry &e2)
{
+ qDebug() << e1.url << "vs" << e2.url;
return e1.id == e2.id &&
e1.name == e2.name &&
e1.description == e2.description &&
@@ -76,8 +77,8 @@ slots:
<< true
<< true
<< (QList<UpdateChecker::ChannelListEntry>()
- << UpdateChecker::ChannelListEntry{"develop", "Develop", "The channel called \"develop\"", MultiMC_TEST_DATA_URL}
- << UpdateChecker::ChannelListEntry{"stable", "Stable", "It's stable at least", MultiMC_TEST_DATA_URL}
+ << UpdateChecker::ChannelListEntry{"develop", "Develop", "The channel called \"develop\"", findTestDataUrl("tests/data")}
+ << UpdateChecker::ChannelListEntry{"stable", "Stable", "It's stable at least", findTestDataUrl("tests/data")}
<< UpdateChecker::ChannelListEntry{"42", "The Channel", "This is the channel that is going to answer all of your questions", "https://dent.me/tea"});
}
void tst_ChannelListParsing()