File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed
Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ if [ "$cid" != "bafy2bzacecgqgzh3gxpariy3mzqb37y2vvxoaw5nwbrlzkhso6owus3zqckwe"
2424 exit 1
2525fi
2626
27+ echo " Test snapshot GC"
28+ forest_check_db_stats
29+ forest_run_snap_gc
30+ sleep 5
31+ forest_wait_for_sync
32+ forest_check_db_stats
33+
2734echo " Test dev commands (which could brick the node/cause subsequent snapshots to fail)"
2835
2936echo " Test subcommand: chain set-head"
Original file line number Diff line number Diff line change @@ -100,6 +100,12 @@ function forest_init_stateless {
100100 export FULLNODE_API_INFO
101101}
102102
103+ function forest_run_snap_gc {
104+ ADMIN_TOKEN=$( cat admin_token)
105+ FULLNODE_API_INFO=" $ADMIN_TOKEN :/ip4/127.0.0.1/tcp/2345/http"
106+ $FOREST_CLI_PATH chain prune snap
107+ }
108+
103109function forest_print_logs_and_metrics {
104110 echo " Get and print metrics"
105111 wget -O metrics.log http://localhost:6116/metrics
You can’t perform that action at this time.
0 commit comments