goimports formatting
This commit is contained in:
parent
f23118d73f
commit
a643e7ca0c
5 changed files with 39 additions and 40 deletions
|
@ -48,6 +48,7 @@ func JobUpdateFromAuroraTask(task *AuroraTask) *JobUpdate {
|
|||
request: &aurora.JobUpdateRequest{TaskConfig: newTask.TaskConfig(), Settings: newUpdateSettings()},
|
||||
}
|
||||
}
|
||||
|
||||
// JobUpdateFromConfig creates an update with default values using an aurora.TaskConfig
|
||||
// primitive as the underlying task configuration.
|
||||
// This function should not be used unless the implications of using a primitive value are understood.
|
||||
|
@ -123,7 +124,7 @@ func (j *JobUpdate) QueueUpdateStrategy(groupSize int32) *JobUpdate {
|
|||
return j
|
||||
}
|
||||
|
||||
func (j *JobUpdate) VariableBatchStrategy(autoPause bool, batchSizes... int32) *JobUpdate {
|
||||
func (j *JobUpdate) VariableBatchStrategy(autoPause bool, batchSizes ...int32) *JobUpdate {
|
||||
j.request.Settings.UpdateStrategy = &aurora.JobUpdateStrategy{
|
||||
VarBatchStrategy: &aurora.VariableBatchJobUpdateStrategy{GroupSizes: batchSizes, AutopauseAfterBatch: autoPause},
|
||||
}
|
||||
|
|
|
@ -724,7 +724,6 @@ func TestRealisClient_PartitionPolicy(t *testing.T) {
|
|||
|
||||
}
|
||||
|
||||
|
||||
func TestRealisClient_UpdateStrategies(t *testing.T) {
|
||||
// Create a single job
|
||||
job := realis.NewJob().
|
||||
|
@ -737,7 +736,6 @@ func TestRealisClient_UpdateStrategies(t *testing.T) {
|
|||
InstanceCount(6).
|
||||
IsService(true)
|
||||
|
||||
|
||||
// Needed to populate the task config correctly
|
||||
assert.NoError(t, job.BuildThermosPayload())
|
||||
|
||||
|
@ -747,7 +745,7 @@ func TestRealisClient_UpdateStrategies(t *testing.T) {
|
|||
}{
|
||||
{
|
||||
jobUpdate: realis.JobUpdateFromAuroraTask(job.AuroraTask()).
|
||||
QueueUpdateStrategy( 2).
|
||||
QueueUpdateStrategy(2).
|
||||
InstanceCount(6).
|
||||
WatchTime(1000),
|
||||
Name: "Queue",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue