Skip to content

Commit 3e0f877

Browse files
committed
loadtest: add initAlice util
1 parent 02350f3 commit 3e0f877

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

itest/loadtest/utils.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,16 @@ func (r *rpcClient) listTransfersSince(t *testing.T, ctx context.Context,
100100
return resp.Transfers[newIndex:]
101101
}
102102

103+
// initAlice is similar to initClients, but only returns the Alice client.
104+
func initAlice(t *testing.T, ctx context.Context, cfg *Config) *rpcClient {
105+
alice := getTapClient(t, ctx, cfg.Alice.Tapd, cfg.Alice.Lnd)
106+
107+
_, err := alice.GetInfo(ctx, &taprpc.GetInfoRequest{})
108+
require.NoError(t, err)
109+
110+
return alice
111+
}
112+
103113
func initClients(t *testing.T, ctx context.Context,
104114
cfg *Config) (*rpcClient, *rpcClient, *rpcclient.Client) {
105115

0 commit comments

Comments
 (0)