From 10d8e47a24c084a79a06843b47e1b2b2825d4dc1 Mon Sep 17 00:00:00 2001 From: Musa Date: Wed, 24 Apr 2024 16:43:16 -0400 Subject: [PATCH] Adding test logs to see error. --- extension/agenthealth/handler/stats/provider/process_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/extension/agenthealth/handler/stats/provider/process_test.go b/extension/agenthealth/handler/stats/provider/process_test.go index 63a0698052..5605ea4309 100644 --- a/extension/agenthealth/handler/stats/provider/process_test.go +++ b/extension/agenthealth/handler/stats/provider/process_test.go @@ -5,7 +5,6 @@ package provider import ( "errors" - "fmt" "sync" "testing" "time" @@ -76,8 +75,7 @@ func TestProcessStats(t *testing.T) { mock.err = testErr mock.mu.Unlock() provider.refresh() - fmt.Println(provider.getStats()) - fmt.Println(agent.Stats{}) + assert.Equal(t, provider.getStats(), agent.Stats{}) assert.Eventually(t, func() bool { return provider.getStats() == agent.Stats{} }, 5*time.Millisecond, time.Millisecond)