Skip to content

Commit

Permalink
Update metrics_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
aditya1702 committed Feb 16, 2024
1 parent 6a2c7b9 commit 691cd37
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions cmd/soroban-rpc/internal/test/metrics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,6 @@ func TestMetrics(t *testing.T) {
assert.Equal(t, val, 2.0)
}

//func TestLogMetrics(t *testing.T) {
// logMetrics := logmetrics.New("log_metrics_test")
// logger := supportlog.New()
// logger.AddHook(logMetrics)
//
// err := errors.Errorf("test-error")
// logger.WithError(err).Error("test error 1")
// logger.WithError(err).Error("test error 2")
//
// val := testutil.ToFloat64(logMetrics[logrus.ErrorLevel])
// assert.Equal(t, val, 2.0)
//}

func getMetrics(test *Test) string {
metricsURL, err := url.JoinPath(test.adminURL(), "/metrics")
require.NoError(test.t, err)
Expand Down

0 comments on commit 691cd37

Please sign in to comment.