From 2f37163caf244acbe5fc715f2321aebc231522bc Mon Sep 17 00:00:00 2001 From: fanquake Date: Tue, 6 Aug 2019 16:50:42 +0800 Subject: [PATCH] test: only include and init openSSL where it's actually used --- src/qt/test/paymentservertests.cpp | 2 ++ src/qt/test/test_main.cpp | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/qt/test/paymentservertests.cpp b/src/qt/test/paymentservertests.cpp index 6cafe05461..eca468a6ab 100644 --- a/src/qt/test/paymentservertests.cpp +++ b/src/qt/test/paymentservertests.cpp @@ -16,6 +16,7 @@ #include #include +#include #include #include @@ -66,6 +67,7 @@ static SendCoinsRecipient handleRequest(PaymentServer* server, std::vector #include -#include - #if defined(QT_STATICPLUGIN) #include #if defined(QT_QPA_PLATFORM_MINIMAL) @@ -73,8 +71,6 @@ int main(int argc, char *argv[]) BitcoinApplication app(*node, argc, argv); app.setApplicationName("Bitcoin-Qt-test"); - SSL_library_init(); - AppTests app_tests(app); if (QTest::qExec(&app_tests) != 0) { fInvalid = true;