@@ -45,6 +45,7 @@ func TestWebhookHandlerServiceChannel(t *testing.T) {
45
45
MaxRetries : 3 ,
46
46
MinWaitBtwnRetriesMS : 5 ,
47
47
NetworkPassphrase : "networkpassphrase" ,
48
+ MetricsService : metricsService ,
48
49
}
49
50
channel := NewWebhookChannel (cfg )
50
51
@@ -90,7 +91,10 @@ func TestUnlockChannelAccount(t *testing.T) {
90
91
dbConnectionPool , err := db .OpenDBConnectionPool (dbt .DSN )
91
92
require .NoError (t , err )
92
93
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 )
94
98
channelAccountStore := channelAccountStore.ChannelAccountStoreMock {}
95
99
mockHTTPClient := utils.MockHTTPClient {}
96
100
cfg := WebhookChannelConfigs {
@@ -102,6 +106,7 @@ func TestUnlockChannelAccount(t *testing.T) {
102
106
MaxRetries : 3 ,
103
107
MinWaitBtwnRetriesMS : 5 ,
104
108
NetworkPassphrase : "networkpassphrase" ,
109
+ MetricsService : metricsService ,
105
110
}
106
111
channel := NewWebhookChannel (cfg )
107
112
account := keypair .MustRandom ()
0 commit comments