Skip to content

Commit b41a18e

Browse files
committed
tests
1 parent f52b2fd commit b41a18e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

scripts/tests/calibnet_other_check.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ if [ "$cid" != "bafy2bzacecgqgzh3gxpariy3mzqb37y2vvxoaw5nwbrlzkhso6owus3zqckwe"
2424
exit 1
2525
fi
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+
2734
echo "Test dev commands (which could brick the node/cause subsequent snapshots to fail)"
2835

2936
echo "Test subcommand: chain set-head"

scripts/tests/harness.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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+
103109
function forest_print_logs_and_metrics {
104110
echo "Get and print metrics"
105111
wget -O metrics.log http://localhost:6116/metrics

0 commit comments

Comments
 (0)