Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Dec 19, 2024
1 parent 166bd33 commit 44742a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/systemtests/snapshots_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ func TestSnapshots(t *testing.T) {
}

// export snapshot at height 5
res := cli.RunCommandWithArgs(command, "export", "--height=5", fmt.Sprintf("--home=%s", node0Dir))
res := cli.RunCommandWithArgs(command, "export", "--height=5", fmt.Sprintf("--home=%s", node0Dir), "--log_level=disabled")
require.Contains(t, res, "Snapshot created at height 5")
require.DirExists(t, fmt.Sprintf("%s/data/snapshots/5/3", node0Dir))

// Check snapshots list
res = cli.
WithRunErrorsIgnored().
WithRunSingleOutput(). // pebbledb prints logs to stderr, we cannot override the logger in store/v2 and cosmos-db. This isn't problematic in a real-world scenario, but it makes it hard to test the output.
RunCommandWithArgs(command, "list", fmt.Sprintf("--home=%s", node0Dir))
RunCommandWithArgs(command, "list", fmt.Sprintf("--home=%s", node0Dir), "--log_level=disabled")
require.Contains(t, res, "height: 5")

// Dump snapshot
Expand Down Expand Up @@ -98,6 +98,6 @@ func TestPrune(t *testing.T) {
} else {
command = []string{"prune", "everything"}
}
res := cli.RunCommandWithArgs(append(command, fmt.Sprintf("--home=%s", node0Dir))...)
res := cli.RunCommandWithArgs(append(command, fmt.Sprintf("--home=%s", node0Dir), "--log_level=disabled")...)
require.Contains(t, res, "successfully pruned the application root multi stores")
}

0 comments on commit 44742a8

Please sign in to comment.