Skip to content

Commit 980a6bb

Browse files
committed
Refactor Substreams client initialization with updated configuration and connection handling
1 parent 3ad2c8e commit 980a6bb

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

test/integration_test.go

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,17 @@ func TestIntegration(t *testing.T) {
7575
meteringServer.Run()
7676
}()
7777

78-
clientConfig := client.NewSubstreamsClientConfig("localhost:9003", "", 0, false, true, "firecore_test")
79-
substreamsClient, _, _, _, err := client.NewSubstreamsClient(clientConfig)
78+
clientConfig := client.NewSubstreamsClientConfig(client.SubstreamsClientConfigOptions{
79+
Endpoint: "localhost:9003",
80+
AuthToken: "",
81+
AuthType: 0,
82+
Insecure: false,
83+
PlainText: true,
84+
Agent: "firecore_test",
85+
ForceProtocolVersion: 0,
86+
})
87+
connection, _, _, _, err := client.NewSubstreamsClientConn(clientConfig)
88+
substreamsClient := pbsubstreamsrpc.NewStreamClient(connection)
8089
require.NoError(t, err)
8190

8291
// WAIT SERVERS TO BE READY

0 commit comments

Comments
 (0)