From 513d41731bbd7be868d5d6fa71f8a3fd1ea66bc0 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Mon, 9 Dec 2024 22:57:17 +0100 Subject: [PATCH] fix test Signed-off-by: Tim Vaillancourt --- go/vt/vtorc/process/health_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/go/vt/vtorc/process/health_test.go b/go/vt/vtorc/process/health_test.go index fbd2917bee3..85317530ac4 100644 --- a/go/vt/vtorc/process/health_test.go +++ b/go/vt/vtorc/process/health_test.go @@ -20,6 +20,7 @@ import ( "testing" "github.com/stretchr/testify/require" + _ "modernc.org/sqlite" ) func TestHealthTest(t *testing.T) { @@ -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) @@ -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() }