Skip to content

Commit

Permalink
[LoadTest] Add missing block query client to load test (#642)
Browse files Browse the repository at this point in the history
  • Loading branch information
red-0ne authored Jun 30, 2024
1 parent 0ed3518 commit 9de7577
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion load-testing/tests/relays_stress_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1361,10 +1361,15 @@ func (s *relaysSuite) countClaimAndProofs() {

// querySharedParams queries the current on-chain shared module parameters for use
// over the duration of the test.
func (s *relaysSuite) querySharedParams() {
func (s *relaysSuite) querySharedParams(queryNodeRPCURL string) {
s.Helper()

deps := depinject.Supply(s.txContext.GetClientCtx())

blockQueryClient, err := sdkclient.NewClientFromNode(queryNodeRPCURL)
require.NoError(s, err)
deps = depinject.Configs(deps, depinject.Supply(blockQueryClient))

sharedQueryClient, err := query.NewSharedQuerier(deps)
require.NoError(s, err)

Expand Down
2 changes: 1 addition & 1 deletion load-testing/tests/relays_stress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ func (s *relaysSuite) LocalnetIsRunning() {
s.countClaimAndProofs()

// Query for the current shared on-chain params.
s.querySharedParams()
s.querySharedParams(loadTestParams.TestNetNode)

// Some suppliers may already be staked at genesis, ensure that staking during
// this test succeeds by increasing the sake amount.
Expand Down

0 comments on commit 9de7577

Please sign in to comment.