Skip to content

Commit 896efc4

Browse files
committed
update webhook channel test
1 parent 77f900f commit 896efc4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

internal/tss/channels/webhook_channel_test.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ func TestWebhookHandlerServiceChannel(t *testing.T) {
4545
MaxRetries: 3,
4646
MinWaitBtwnRetriesMS: 5,
4747
NetworkPassphrase: "networkpassphrase",
48+
MetricsService: metricsService,
4849
}
4950
channel := NewWebhookChannel(cfg)
5051

@@ -90,7 +91,10 @@ func TestUnlockChannelAccount(t *testing.T) {
9091
dbConnectionPool, err := db.OpenDBConnectionPool(dbt.DSN)
9192
require.NoError(t, err)
9293
defer dbConnectionPool.Close()
93-
store, _ := store.NewStore(dbConnectionPool)
94+
sqlxDB, err := dbConnectionPool.SqlxDB(context.Background())
95+
require.NoError(t, err)
96+
metricsService := metrics.NewMetricsService(sqlxDB)
97+
store, _ := store.NewStore(dbConnectionPool, metricsService)
9498
channelAccountStore := channelAccountStore.ChannelAccountStoreMock{}
9599
mockHTTPClient := utils.MockHTTPClient{}
96100
cfg := WebhookChannelConfigs{
@@ -102,6 +106,7 @@ func TestUnlockChannelAccount(t *testing.T) {
102106
MaxRetries: 3,
103107
MinWaitBtwnRetriesMS: 5,
104108
NetworkPassphrase: "networkpassphrase",
109+
MetricsService: metricsService,
105110
}
106111
channel := NewWebhookChannel(cfg)
107112
account := keypair.MustRandom()

0 commit comments

Comments
 (0)