From 691cd37b3a7a541b7f984ba6e9465f154042376c Mon Sep 17 00:00:00 2001 From: Aditya Vyas Date: Fri, 16 Feb 2024 15:18:22 -0500 Subject: [PATCH] Update metrics_test.go --- cmd/soroban-rpc/internal/test/metrics_test.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/cmd/soroban-rpc/internal/test/metrics_test.go b/cmd/soroban-rpc/internal/test/metrics_test.go index 225ed342..0764123d 100644 --- a/cmd/soroban-rpc/internal/test/metrics_test.go +++ b/cmd/soroban-rpc/internal/test/metrics_test.go @@ -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)