Skip to content

Commit

Permalink
enable win tests and fix test-smartcont.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
neodix42 committed Dec 14, 2023
1 parent 564fb88 commit aa5aef7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions assembly/native/build-windows.bat
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ IF %errorlevel% NEQ 0 (
exit /b %errorlevel%
)

IF "%~1"=="-t" (
IF "%1"=="-t" (
ninja storage-daemon storage-daemon-cli blockchain-explorer fift func tonlib tonlibjson ^
tonlib-cli validator-engine lite-client pow-miner validator-engine-console generate-random-id ^
json2tlo dht-server http-proxy rldp-http-proxy adnl-proxy create-state create-hardfork emulator ^
Expand All @@ -134,7 +134,7 @@ IF %errorlevel% NEQ 0 (
exit /b %errorlevel%
)

IF "%~1"=="-t" (
IF "%1"=="-t" (
echo Running tests...
REM ctest -C Release --output-on-failure -E "test-catchain|test-actors|test-validator-session-state"
ctest -C Release --output-on-failure
Expand Down
5 changes: 3 additions & 2 deletions crypto/test/test-smartcont.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ void do_test_wallet(int revision) {
auto address = std::move(res.address);
auto iwallet = std::move(res.wallet);
auto public_key = priv_key.get_public_key().move_as_ok().as_octet_string();
;

check_wallet_state(iwallet, 1, 123, public_key);

// lets send a lot of messages
Expand Down Expand Up @@ -1026,7 +1026,7 @@ class CheckedDns {
}
return action;
});
auto query = dns_->create_update_query(key_.value(), smc_actions).move_as_ok();
auto query = dns_->create_update_query(key_.value(), smc_actions, query_id_++).move_as_ok();
CHECK(dns_.write().send_external_message(std::move(query)).code == 0);
}
map_dns_.update(entries);
Expand Down Expand Up @@ -1081,6 +1081,7 @@ class CheckedDns {
using ManualDns = ton::ManualDns;
td::optional<td::Ed25519::PrivateKey> key_;
td::Ref<ManualDns> dns_;
td::uint32 query_id_ = 1; // Query id serve as "valid until", but in tests now() == 0

MapDns map_dns_;
td::optional<MapDns> combined_map_dns_;
Expand Down

0 comments on commit aa5aef7

Please sign in to comment.