Minor fix in an attempt to get CI to pass
This commit is contained in:
parent
36edefda5d
commit
0ec1f87b2b
2 changed files with 2 additions and 2 deletions
|
@ -77,7 +77,7 @@ func (j *JobUpdate) BatchSize(size int32) *JobUpdate {
|
||||||
|
|
||||||
// Minimum number of seconds a shard must remain in RUNNING state before considered a success.
|
// Minimum number of seconds a shard must remain in RUNNING state before considered a success.
|
||||||
func (j *JobUpdate) WatchTime(timeout time.Duration) *JobUpdate {
|
func (j *JobUpdate) WatchTime(timeout time.Duration) *JobUpdate {
|
||||||
j.request.Settings.MinWaitInInstanceRunningMs = int32(timeout.Seconds() * 1000)
|
j.request.Settings.MinWaitInInstanceRunningMs = int32(timeout.Milliseconds())
|
||||||
return j
|
return j
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -822,7 +822,7 @@ func TestRealisClient_BatchAwareAutoPause(t *testing.T) {
|
||||||
strategy := realis.JobUpdateFromAuroraTask(job.AuroraTask()).
|
strategy := realis.JobUpdateFromAuroraTask(job.AuroraTask()).
|
||||||
VariableBatchStrategy(true, updateGroups...).
|
VariableBatchStrategy(true, updateGroups...).
|
||||||
InstanceCount(6).
|
InstanceCount(6).
|
||||||
WatchTime(1000)
|
WatchTime(time.Second*1)
|
||||||
|
|
||||||
result, err := r.StartJobUpdate(strategy, "")
|
result, err := r.StartJobUpdate(strategy, "")
|
||||||
require.NoError(t, err)
|
require.NoError(t, err)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue