Skip to content

Commit

Permalink
FFM-1082 Update stopTime
Browse files Browse the repository at this point in the history
  • Loading branch information
pdoshisplunk committed Aug 28, 2024
1 parent 1ceda40 commit b276e5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions metric_ruleset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func TestCreateArchivedMetricRuleset(t *testing.T) {
filterNot := false
filterPropertyValue := "container_id"
startTime := (time.Now().Unix() - 900) * 1000
stopTime := (time.Now().Unix() - 900) * 1000
stopTime := (time.Now().Unix() - 200) * 1000
result, err := client.CreateMetricRuleset(context.Background(), &metric_ruleset.CreateMetricRulesetRequest{
MetricName: metricName,
Description: &rulesetDescription,
Expand Down Expand Up @@ -61,7 +61,6 @@ func TestCreateArchivedMetricRuleset(t *testing.T) {
assert.NotNil(t, restorationID, "Restoration ID is null")
assert.NotNil(t, &startTime, "StartTime is null")
assert.NotNil(t, &stopTime, "StartTime is null")
//assert.Equal(t, &stopTime, *result.ExceptionRules[0].Restoration.StopTime, "StopTime dont match")
assert.Equal(t, metricName, *result.MetricName, "MetricName does not match")
assert.Equal(t, rulesetDescription, *result.Description, "Description does not match")
assert.Equal(t, 1, len(result.ExceptionRules), "Unexpected length of exception rules array")
Expand Down

0 comments on commit b276e5e

Please sign in to comment.