From 69b88e6a47d8369f97892eddcbfa839473ce9120 Mon Sep 17 00:00:00 2001 From: aaron Date: Sun, 1 Sep 2024 20:43:26 -0400 Subject: [PATCH] removed query test --- test/utils/test_us_db2.cpp | 10 ---------- test/utils/test_us_db2.h | 1 - 2 files changed, 11 deletions(-) diff --git a/test/utils/test_us_db2.cpp b/test/utils/test_us_db2.cpp index a2e0617f8..a7568c4b9 100644 --- a/test/utils/test_us_db2.cpp +++ b/test/utils/test_us_db2.cpp @@ -60,13 +60,3 @@ void TestUSDB2::testSecureConnection() QVERIFY(!err.isEmpty()); #endif } - -void TestUSDB2::testQuery() -{ -#ifndef NO_DB - US_DB2 db; - QString query = "SELECT 1"; - db.rawQuery(query); - QVERIFY(db.numRows() == -1); // Should fail as no real database is connected -#endif -} diff --git a/test/utils/test_us_db2.h b/test/utils/test_us_db2.h index ed18408e7..c7b591217 100644 --- a/test/utils/test_us_db2.h +++ b/test/utils/test_us_db2.h @@ -15,7 +15,6 @@ private slots: void testConstructor(); void testConnection(); void testSecureConnection(); - void testQuery(); }; #endif // TEST_US_DB2_H