From d730e6cad6d359299939e9736916e21df1a1318c Mon Sep 17 00:00:00 2001 From: John Murphy Date: Fri, 2 Jul 2021 17:43:47 +0000 Subject: [PATCH] fixed tests --- pkg/analyze/host_time_test.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pkg/analyze/host_time_test.go b/pkg/analyze/host_time_test.go index 04a8dd9f4..80b19ffc8 100644 --- a/pkg/analyze/host_time_test.go +++ b/pkg/analyze/host_time_test.go @@ -206,6 +206,12 @@ func TestAnalyzeHostTime(t *testing.T) { Message: "Timezone is not set to UTC", }, }, + { + Pass: &troubleshootv1beta2.SingleOutcome{ + When: "timezone == UTC", + Message: "Timezone is set to UTC", + }, + }, }, }, result: []*AnalyzeResult{ @@ -237,6 +243,18 @@ func TestAnalyzeHostTime(t *testing.T) { Message: "System clock not yet synchronized", }, }, + { + Pass: &troubleshootv1beta2.SingleOutcome{ + When: "timezone == UTC", + Message: "Timezone is set to UTC", + }, + }, + { + Pass: &troubleshootv1beta2.SingleOutcome{ + When: "ntp == synchronized+active", + Message: "System clock is synchronized", + }, + }, }, }, result: []*AnalyzeResult{