Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update integration tests
Browse files Browse the repository at this point in the history
MSalopek committed Nov 4, 2022
1 parent 05a9ab8 commit 1cf7297
Showing 3 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion tests/integration/actions.go
Original file line number Diff line number Diff line change
@@ -1094,6 +1094,6 @@ func (tr TestRun) queryConsumerChainRemoved(
}
}
if verbose {
fmt.Printf("consumer chain %s successfully removed\b", action.consumerChain)
fmt.Printf("consumer chain %s successfully removed\n", action.consumerChain)
}
}
12 changes: 6 additions & 6 deletions tests/integration/main.go
Original file line number Diff line number Diff line change
@@ -32,10 +32,10 @@ func main() {
tr.ValidateStringLiterals()
tr.startDocker()

// dmc := DemocracyTestRun()
// dmc.SetLocalSDKPath(*localSdkPath)
// dmc.ValidateStringLiterals()
// dmc.startDocker()
dmc := DemocracyTestRun()
dmc.SetLocalSDKPath(*localSdkPath)
dmc.ValidateStringLiterals()
dmc.startDocker()

ds := DoubleSignTestRun()
ds.SetLocalSDKPath(*localSdkPath)
@@ -45,8 +45,8 @@ func main() {
wg.Add(1)
go tr.ExecuteSteps(&wg, happyPathSteps)

// wg.Add(1)
// go dmc.ExecuteSteps(&wg, democracySteps)
wg.Add(1)
go dmc.ExecuteSteps(&wg, democracySteps)

wg.Add(1)
go ds.ExecuteSteps(&wg, doubleSignProviderSteps)
8 changes: 3 additions & 5 deletions tests/integration/steps_stop_chain.go
Original file line number Diff line number Diff line change
@@ -6,16 +6,15 @@ func stepsStopChain(consumerName string) []Step {
{
action: submitConsumerRemovalProposalAction{
chain: chainID("provi"),
from: validatorID("alice"),
from: validatorID("bob"),
deposit: 10000001,
consumerChain: chainID(consumerName),
stopTime: 0,
},
state: State{
chainID("provi"): ChainState{
ValBalances: &map[validatorID]uint{
validatorID("alice"): 9479013472, // was 9489999997
validatorID("bob"): 9500000002,
validatorID("bob"): 9490000001,
},
Proposals: &map[uint]Proposal{
2: ConsumerRemovalProposal{
@@ -46,8 +45,7 @@ func stepsStopChain(consumerName string) []Step {
},
},
ValBalances: &map[validatorID]uint{
validatorID("alice"): 9479013472,
validatorID("bob"): 9500000002,
validatorID("bob"): 9500000002,
},
},
},

0 comments on commit 1cf7297

Please sign in to comment.