Skip to content

Commit de5d2d5

Browse files
committed
fix windows build
1 parent ac95317 commit de5d2d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

silkworm/db/kv/txn_num_test.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ struct TxNumText : ContextTestBase {
2828
chain::CanonicalBodyForStorageProvider provider;
2929
};
3030

31+
// Exclude on MSVC due to error LNK2001: unresolved external symbol testing::Matcher<class std::basic_string_view...
32+
// See also https://github.com/google/googletest/issues/4357
33+
#ifndef _WIN32
3134
TEST_CASE_METHOD(TxNumText, "max_tx_num", "[db][txn][tx_num]") {
3235
auto cursor = std::make_shared<MockCursor>();
3336
EXPECT_CALL(transaction, cursor(table::kMaxTxNumName)).WillOnce(Invoke([&cursor](Unused) -> Task<std::shared_ptr<kv::api::Cursor>> {
@@ -237,5 +240,6 @@ TEST_CASE_METHOD(TxNumText, "block_num_from_tx_num", "[db][txn][tx_num]") {
237240
CHECK(spawn_and_wait(block_num_from_tx_num(transaction, 15, provider)) == 2);
238241
}
239242
}
243+
#endif // _WIN32
240244

241245
} // namespace silkworm::db::txn

0 commit comments

Comments
 (0)