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 2fa52c2 commit d36654f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extension/agenthealth/handler/stats/provider/process_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package provider

import (
"errors"
"fmt"
"sync"
"testing"
"time"
Expand Down Expand Up @@ -75,6 +76,8 @@ func TestProcessStats(t *testing.T) {
mock.err = testErr
mock.mu.Unlock()
provider.refresh()
fmt.Println(provider.getStats())
fmt.Println(agent.Stats{})
assert.Eventually(t, func() bool {
return provider.getStats() == agent.Stats{}
}, 5*time.Millisecond, time.Millisecond)
Expand Down

0 comments on commit d36654f

Please sign in to comment.