Skip to content

Commit

Permalink
Adapt tests to changes in dir error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Nov 3, 2018
1 parent 1d75ee2 commit 6dc5215
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions connector/tests/misctests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,7 @@ void MiscTests::testSyncthingDir()
CPPUNIT_ASSERT_EQUAL(1_st, dir.itemErrors.size());
dir.lastSyncStarted = DateTime();
CPPUNIT_ASSERT(!dir.assignStatus(SyncthingDirStatus::Idle, updateTime += TimeSpan::fromMinutes(1.5)));
CPPUNIT_ASSERT_EQUAL(0_st, dir.itemErrors.size());
dir.itemErrors.emplace_back(QStringLiteral("message"), QStringLiteral("path"));
CPPUNIT_ASSERT_EQUAL(updateTime, dir.lastSyncStarted);
const auto lastSyncTime(updateTime += TimeSpan::fromMinutes(1.5));
CPPUNIT_ASSERT(dir.assignStatus(SyncthingDirStatus::Synchronizing, lastSyncTime));
CPPUNIT_ASSERT_EQUAL(QStringLiteral("synchronizing"), dir.statusString());
Expand Down

0 comments on commit 6dc5215

Please sign in to comment.