From 675f85d71cb97c853bca9adfefb21df2db450dd3 Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Tue, 21 Jan 2025 16:37:14 +0800 Subject: [PATCH] test(rpc): test snapshots for Eth* methods --- .config/nextest.toml | 6 ++++++ src/tool/subcommands/api_cmd/test_snapshots.txt | 16 ++++++++++++++++ 2 files changed, 22 insertions(+) diff --git a/.config/nextest.toml b/.config/nextest.toml index 546273cc03d3..97a64b262618 100644 --- a/.config/nextest.toml +++ b/.config/nextest.toml @@ -17,6 +17,12 @@ slow-timeout = { period = "120s", terminate-after = 3 } filter = 'test(create_manifest_json)' slow-timeout = { period = "120s", terminate-after = 3 } +# This test downloads RPC test snapshot files from the network, which can take a while. +# It is only run on CI, so we can afford to be more patient. +[[profile.default.overrides]] +filter = 'test(tool::subcommands::api_cmd::test_snapshot::tests::rpc_regression_tests)' +slow-timeout = { period = "120s", terminate-after = 3 } + [[profile.default.overrides]] # lint runs `cargo check` for source file discovery, which can take a while filter = 'binary(lint)' diff --git a/src/tool/subcommands/api_cmd/test_snapshots.txt b/src/tool/subcommands/api_cmd/test_snapshots.txt index 57eaf16ca8cb..29ab869ef2f1 100644 --- a/src/tool/subcommands/api_cmd/test_snapshots.txt +++ b/src/tool/subcommands/api_cmd/test_snapshots.txt @@ -10,6 +10,22 @@ filecoin_chainhasobj_1736937942818251.rpcsnap.json.zst filecoin_chainreadobj_1736937942818676.rpcsnap.json.zst filecoin_chainstatobj_1736937942819063.rpcsnap.json.zst filecoin_chaintipsetweight_1736937942819105.rpcsnap.json.zst +filecoin_ethaccounts_1737446676689764.rpcsnap.json.zst +filecoin_ethaddresstofilecoinaddress_1737446676692760.rpcsnap.json.zst +filecoin_ethcall_1737446676693468.rpcsnap.json.zst +filecoin_ethchainid_1736937942819147.rpcsnap.json.zst +filecoin_ethfeehistory_1737446676883828.rpcsnap.json.zst +filecoin_ethgetbalance_1737446676695335.rpcsnap.json.zst +filecoin_ethgetblockbynumber_1737446676696328.rpcsnap.json.zst +filecoin_ethgetblocktransactioncountbynumber_1737446676697272.rpcsnap.json.zst +filecoin_ethgetcode_1737446676697285.rpcsnap.json.zst +filecoin_ethgetlogs_1737446676697398.rpcsnap.json.zst +filecoin_ethgetmessagecidbytransactionhash_1737446676697418.rpcsnap.json.zst +filecoin_ethgetstorageat_1737446676697795.rpcsnap.json.zst +filecoin_ethgettransactionhashbycid_1737446676698540.rpcsnap.json.zst +filecoin_ethprotocolversion_1737446676698826.rpcsnap.json.zst +filecoin_ethtraceblock_1737446676736475.rpcsnap.json.zst +filecoin_ethuninstallfilter_1737446676698857.rpcsnap.json.zst filecoin_minergetbaseinfo_1737022538680883.rpcsnap.json.zst filecoin_minergetbaseinfo_1737022538681402.rpcsnap.json.zst filecoin_stategetallallocations_1733735079961566.rpcsnap.json.zst