Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Dec 9, 2024
1 parent 0f50b80 commit 513d417
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/vt/vtorc/process/health_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"testing"

"github.com/stretchr/testify/require"
_ "modernc.org/sqlite"
)

func TestHealthTest(t *testing.T) {
Expand All @@ -37,6 +38,7 @@ func TestHealthTest(t *testing.T) {
require.False(t, health.Healthy)
require.False(t, health.DiscoveredOnce)
require.NotZero(t, ThisNodeHealth.LastReported)
ResetLastHealthCheckCache()

ThisNodeHealth = &NodeHealth{}
FirstDiscoveryCycleComplete.Store(true)
Expand All @@ -45,4 +47,5 @@ func TestHealthTest(t *testing.T) {
require.True(t, health.Healthy)
require.True(t, health.DiscoveredOnce)
require.NotZero(t, ThisNodeHealth.LastReported)
ResetLastHealthCheckCache()
}

0 comments on commit 513d417

Please sign in to comment.