Skip to content

Commit

Permalink
Adapt tests to rewording of statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Jul 14, 2024
1 parent c8db54d commit e87e827
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions syncthingmodel/tests/models.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ void ModelTests::testDevicesModel()
const auto model = Data::SyncthingDeviceModel(m_connection);
QCOMPARE(model.rowCount(QModelIndex()), 2);
QCOMPARE(model.index(0, 0).data(), QStringLiteral("Myself"));
QCOMPARE(model.index(0, 1).data(), QStringLiteral("This device"));
QCOMPARE(model.index(0, 1).data(), QStringLiteral("This Device"));
QCOMPARE(model.index(1, 0).data(), QStringLiteral("Other instance"));
QCOMPARE(model.index(1, 1).data(), QStringLiteral("Unknown status"));
QCOMPARE(model.index(1, 1).data(), QStringLiteral("Unknown"));
const auto dev1Idx = model.index(0, 0);
QCOMPARE(model.rowCount(dev1Idx), 5);
QCOMPARE(model.index(0, 0, dev1Idx).data(), QStringLiteral("ID"));
Expand Down

0 comments on commit e87e827

Please sign in to comment.