simulation: Minor changes
Now that we properly initialize governance, a ton of governance slashing doesn't happen in the first few blocks. Because of this, we can run through blocks in the range (0,200) quite rapidly. This PR acknowledges that and increases many of the default block heights.
This commit is contained in:
parent
7f1b06a724
commit
5ed24e44d2
2
Makefile
2
Makefile
|
@ -157,7 +157,7 @@ test_sim_gaia_nondeterminism:
|
||||||
|
|
||||||
test_sim_gaia_fast:
|
test_sim_gaia_fast:
|
||||||
@echo "Running quick Gaia simulation. This may take several minutes..."
|
@echo "Running quick Gaia simulation. This may take several minutes..."
|
||||||
@go test ./cmd/gaia/app -run TestFullGaiaSimulation -SimulationEnabled=true -SimulationNumBlocks=50 -v -timeout 24h
|
@go test ./cmd/gaia/app -run TestFullGaiaSimulation -SimulationEnabled=true -SimulationNumBlocks=150 -v -timeout 24h
|
||||||
|
|
||||||
test_sim_gaia_slow:
|
test_sim_gaia_slow:
|
||||||
@echo "Running full Gaia simulation. This may take awhile!"
|
@echo "Running full Gaia simulation. This may take awhile!"
|
||||||
|
|
|
@ -189,7 +189,7 @@ func TestAppStateDeterminism(t *testing.T) {
|
||||||
t.Skip("Skipping Gaia simulation")
|
t.Skip("Skipping Gaia simulation")
|
||||||
}
|
}
|
||||||
|
|
||||||
numSeeds := 5
|
numSeeds := 3
|
||||||
numTimesToRunPerSeed := 5
|
numTimesToRunPerSeed := 5
|
||||||
appHashList := make([]json.RawMessage, numTimesToRunPerSeed)
|
appHashList := make([]json.RawMessage, numTimesToRunPerSeed)
|
||||||
|
|
||||||
|
@ -206,10 +206,11 @@ func TestAppStateDeterminism(t *testing.T) {
|
||||||
testAndRunTxs(app),
|
testAndRunTxs(app),
|
||||||
[]simulation.RandSetup{},
|
[]simulation.RandSetup{},
|
||||||
[]simulation.Invariant{},
|
[]simulation.Invariant{},
|
||||||
20,
|
50,
|
||||||
20,
|
100,
|
||||||
true,
|
false,
|
||||||
)
|
)
|
||||||
|
app.Commit()
|
||||||
appHash := app.LastCommitID().Hash
|
appHash := app.LastCommitID().Hash
|
||||||
appHashList[j] = appHash
|
appHashList[j] = appHash
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue