Skip to content

Commit d730e6c

Browse files
committed
fixed tests
1 parent 7e32de4 commit d730e6c

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

pkg/analyze/host_time_test.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ func TestAnalyzeHostTime(t *testing.T) {
206206
Message: "Timezone is not set to UTC",
207207
},
208208
},
209+
{
210+
Pass: &troubleshootv1beta2.SingleOutcome{
211+
When: "timezone == UTC",
212+
Message: "Timezone is set to UTC",
213+
},
214+
},
209215
},
210216
},
211217
result: []*AnalyzeResult{
@@ -237,6 +243,18 @@ func TestAnalyzeHostTime(t *testing.T) {
237243
Message: "System clock not yet synchronized",
238244
},
239245
},
246+
{
247+
Pass: &troubleshootv1beta2.SingleOutcome{
248+
When: "timezone == UTC",
249+
Message: "Timezone is set to UTC",
250+
},
251+
},
252+
{
253+
Pass: &troubleshootv1beta2.SingleOutcome{
254+
When: "ntp == synchronized+active",
255+
Message: "System clock is synchronized",
256+
},
257+
},
240258
},
241259
},
242260
result: []*AnalyzeResult{

0 commit comments

Comments
 (0)