Skip to content

Commit a274f87

Browse files
committed
Fix unit tests
1 parent b3b3ddd commit a274f87

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

tests/unit_tests/testcases/app/test_dialogs.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ namespace ValueEditor {
1313
void TestDialogs::testConnectionDialog()
1414
{
1515
//given
16-
QString configTestFile = "connections.xml";
16+
QString configTestFile = "connections.json";
1717
ConsoleTabs tabsWidget;
1818
QSharedPointer<ConnectionsManager> testManager(new ConnectionsManager(configTestFile, tabsWidget,
1919
QSharedPointer<ValueEditor::ViewModel>()));

tests/unit_tests/testcases/app/test_keymodels.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ QSharedPointer<ValueEditor::Model> TestKeyModels::getKeyModel(QSharedPointer<Red
283283
{
284284
QSharedPointer<ValueEditor::Model> actualResult;
285285
KeyFactory factory;
286-
factory.loadKey(connection, "testKey", 0, [&actualResult](QSharedPointer<ValueEditor::Model> model) {
286+
factory.loadKey(connection, "testKey", 0, [&actualResult](QSharedPointer<ValueEditor::Model> model, const QString&) {
287287
actualResult = model;
288288
});
289289

tests/unit_tests/testcases/connections-tree/connections-tree-tests.pri

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,14 @@ HEADERS += \
77
$$CONNECTIONS_TREE_SRC_DIR/items/*.h \
88
$$CONNECTIONS_TREE_SRC_DIR/iconproxy.h \
99
$$CONNECTIONS_TREE_SRC_DIR/operations.h \
10+
$$CONNECTIONS_TREE_SRC_DIR/utils.h \
1011
$$CONNECTIONS_TREE_SRC_DIR/model.h \
1112
1213
SOURCES += \
1314
$$PWD/*.cpp \
1415
$$CONNECTIONS_TREE_SRC_DIR/items/*.cpp \
1516
$$CONNECTIONS_TREE_SRC_DIR/iconproxy.cpp \
17+
$$CONNECTIONS_TREE_SRC_DIR/utils.cpp \
1618
$$CONNECTIONS_TREE_SRC_DIR/model.cpp \
1719
1820
OTHER_FILES += \

0 commit comments

Comments
 (0)