Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
murphybytes committed Jul 6, 2021
1 parent 7e32de4 commit d730e6c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions pkg/analyze/host_time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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{
Expand Down

0 comments on commit d730e6c

Please sign in to comment.