Skip to content

Commit

Permalink
Fix defaults_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: terrytangyuan <[email protected]>
  • Loading branch information
terrytangyuan committed May 27, 2020
1 parent 2e21536 commit 9d9fee4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/apis/tensorflow/v1/defaults_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,11 @@ func expectedTFJob(cleanPodPolicy common.CleanPodPolicy, restartPolicy common.Re
)
}

defaultSuccessPolicy := SuccessPolicyDefault

return &TFJob{
Spec: TFJobSpec{
SuccessPolicy: &defaultSuccessPolicy,
CleanPodPolicy: &cleanPodPolicy,
TFReplicaSpecs: map[TFReplicaType]*common.ReplicaSpec{
TFReplicaTypeWorker: &common.ReplicaSpec{
Expand Down

0 comments on commit 9d9fee4

Please sign in to comment.