Skip to content

Commit

Permalink
fix: add validator param to compositions
Browse files Browse the repository at this point in the history
  • Loading branch information
Bidon15 committed Sep 2, 2022
1 parent c82c522 commit 1c4e401
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
1 change: 1 addition & 0 deletions compositions/cluster-k8s/gen-validators.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
disable_metrics = false

[global.run.test_params]
validator = "80"
persistent-peers = "10"

[[groups]]
Expand Down
1 change: 1 addition & 0 deletions compositions/local-docker/gen-validators.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
disable_metrics = false

[global.run.test_params]
validator = "3"
persistent-peers = "3"

[[groups]]
Expand Down
1 change: 1 addition & 0 deletions manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ enabled = true
name = "init-val"
instances = { min = 1, max = 100, default = 3 }
[testcases.params]
validator = { type = "int", default = 3}
persistent-peers = { type = "int", default = 3}

[[testcases]]
Expand Down
2 changes: 1 addition & 1 deletion testkit/appkit/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (ak *AppKit) GetHomePath() string {
}

func (ak *AppKit) InitChain(moniker string, chainId string) (string, error) {
ak.AccountAddress = chainId
ak.ChainId = chainId
return ak.execCmd([]string{"init", moniker, "--chain-id", chainId, "--home", ak.home})
}

Expand Down
16 changes: 8 additions & 8 deletions tests/app-sync/run_validator.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ func RunValidator(runenv *runtime.RunEnv, initCtx *run.InitContext) error {
runenv.RecordFailure(err)
return err
}
go func(i int) {
s, err := appkit.GetLatestsBlockSize(net.ParseIP("127.0.0.1"))
if err != nil {
runenv.RecordMessage("err in last size call, %s", err.Error())
}

runenv.RecordMessage("latest size on iteration %d of the block is - %d", i, s)
}(i)
// go func(i int) {
s, err := appkit.GetLatestsBlockSize(net.ParseIP("127.0.0.1"))
if err != nil {
runenv.RecordMessage("err in last size call, %s", err.Error())
}

runenv.RecordMessage("latest size on iteration %d of the block is - %d", i, s)
// }(i)
}

time.Sleep(30 * time.Second)
Expand Down

0 comments on commit 1c4e401

Please sign in to comment.