Skip to content

Commit

Permalink
remove panic for Import Export Test
Browse files Browse the repository at this point in the history
  • Loading branch information
kingpinXD committed Oct 29, 2024
1 parent 06c5d75 commit d27702d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions simulation/sim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"math/rand"
"os"
"runtime/debug"
"strings"
"testing"

abci "github.com/cometbft/cometbft/abci/types"
Expand Down Expand Up @@ -340,9 +339,7 @@ func TestAppImportExport(t *testing.T) {
defer func() {
if r := recover(); r != nil {
err := fmt.Sprintf("%v", r)
if !strings.Contains(err, "validator set is empty after InitGenesis") {
panic(r)
}
require.Contains(t, err, "validator set is empty after InitGenesis", "unexpected error: %v", r)
t.Log("Skipping simulation as all validators have been unbonded")
t.Log("err", err, "stacktrace", string(debug.Stack()))
}
Expand Down

0 comments on commit d27702d

Please sign in to comment.