Skip to content

Commit fd4f30c

Browse files
jiangongcodycushing
authored andcommitted
fix flaky test for health check
1 parent e16c4c2 commit fd4f30c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

oci/health_checks_http_probe_result_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var (
1919
httpProbeResultDataSourceRepresentation = map[string]interface{}{
2020
"probe_configuration_id": Representation{repType: Required, create: `${oci_health_checks_http_monitor.test_http_monitor.id}`},
2121
"start_time_greater_than_or_equal_to": Representation{repType: Optional, create: strconv.FormatInt(startTime.UnixNano()/(int64(time.Millisecond)/int64(time.Nanosecond)), 10)},
22-
"start_time_less_than_or_equal_to": Representation{repType: Optional, create: strconv.FormatInt(startTime.Add(5*time.Minute).UnixNano()/(int64(time.Millisecond)/int64(time.Nanosecond)), 10)},
22+
"start_time_less_than_or_equal_to": Representation{repType: Optional, create: strconv.FormatInt(startTime.Add(30*time.Minute).UnixNano()/(int64(time.Millisecond)/int64(time.Nanosecond)), 10)},
2323
"target": Representation{repType: Optional, create: `www.oracle.com`},
2424
}
2525

oci/health_checks_ping_probe_result_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var (
1919
pingProbeResultDataSourceRepresentation = map[string]interface{}{
2020
"probe_configuration_id": Representation{repType: Required, create: `${oci_health_checks_ping_monitor.test_ping_monitor.id}`},
2121
"start_time_greater_than_or_equal_to": Representation{repType: Optional, create: strconv.FormatInt(pringProbeStartTime.UnixNano()/(int64(time.Millisecond)/int64(time.Nanosecond)), 10)},
22-
"start_time_less_than_or_equal_to": Representation{repType: Optional, create: strconv.FormatInt(pringProbeStartTime.Add(5*time.Minute).UnixNano()/(int64(time.Millisecond)/int64(time.Nanosecond)), 10)},
22+
"start_time_less_than_or_equal_to": Representation{repType: Optional, create: strconv.FormatInt(pringProbeStartTime.Add(30*time.Minute).UnixNano()/(int64(time.Millisecond)/int64(time.Nanosecond)), 10)},
2323
"target": Representation{repType: Optional, create: `www.oracle.com`},
2424
}
2525

0 commit comments

Comments
 (0)