Skip to content

Commit 3a0f14b

Browse files
committed
test: fix unit test build with MockNode and banlistmodel
1 parent b7b9183 commit 3a0f14b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

test/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ target_link_libraries(bitcoinqml_unit_tests
4646

4747
if(TARGET GTest::gmock)
4848
target_link_libraries(bitcoinqml_unit_tests PRIVATE GTest::gmock)
49+
if(TARGET bitcoin_common)
50+
target_link_libraries(bitcoinqml_unit_tests PRIVATE bitcoin_common)
51+
endif()
4952
endif()
5053

5154
add_test(NAME bitcoinqml_unit_tests COMMAND bitcoinqml_unit_tests)

test/mocks/mocknode.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#define BITCOIN_QML_TEST_MOCKS_MOCKNODE_H
77

88
#include <gmock/gmock.h>
9+
#include <net_processing.h>
910
#include <interfaces/handler.h>
1011
#include <interfaces/node.h>
1112

0 commit comments

Comments
 (0)