Skip to content

Commit

Permalink
fix race
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazar955 committed Nov 11, 2024
1 parent a759a07 commit f34da4d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions harness/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ type TestManager struct {
babylonDir string
benchConfig benchcfg.Config
fundingRequests chan sdk.AccAddress
fundingAddress sdk.AccAddress
}

// StartManager creates a test manager
Expand Down Expand Up @@ -206,6 +207,10 @@ func StartManager(ctx context.Context, outputsInWallet uint32, epochInterval uin
if err != nil {
return nil, err
}

fundingAccount := babylonClientNode0.MustGetAddr()
fundingAddress := sdk.MustAccAddressFromBech32(fundingAccount)

return &TestManager{
TestRpcClient: testRpcClient,
BabylonClientNode0: babylonClientNode0,
Expand All @@ -217,6 +222,7 @@ func StartManager(ctx context.Context, outputsInWallet uint32, epochInterval uin
babylonDir: babylonDir,
benchConfig: runCfg,
fundingRequests: make(chan sdk.AccAddress, 100),
fundingAddress: fundingAddress,
}, nil
}

Expand Down

0 comments on commit f34da4d

Please sign in to comment.