Skip to content

Commit

Permalink
Adding test logs to see error.
Browse files Browse the repository at this point in the history
  • Loading branch information
musa-asad committed Apr 24, 2024
1 parent d36654f commit 10d8e47
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions extension/agenthealth/handler/stats/provider/process_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package provider

import (
"errors"
"fmt"
"sync"
"testing"
"time"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 10d8e47

Please sign in to comment.