Skip to content

Commit

Permalink
Check for config update success function #987
Browse files Browse the repository at this point in the history
  • Loading branch information
CristalWilsonLobo committed Feb 15, 2024
1 parent 3214422 commit 99d2af7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/cli_tests/zwalletcli_miner_update_config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,18 @@ func updateMinerSCConfig(t *test.SystemTest, walletName string, param map[string
}
}

// isUpdateSuccess checks if the output contains a "updated" message indicating that the update was successful.
func isUpdateSuccess(output []string) bool {
successMsg := "minersc smart contract settings updated"
for _, line := range output {
if strings.Contains(line, successMsg) {
return true
}
}
return false
}


// func updateMinerSCConfig(t *test.SystemTest, walletName string, param map[string]interface{}, nonce int64, retry bool) ([]string, error) {
// t.Logf("Updating miner config...")
// p := createParams(param)
Expand Down

0 comments on commit 99d2af7

Please sign in to comment.