Skip to content

Commit c7fda6e

Browse files
committed
fixing tests for update NewMPIJobControllerWithClock signature
1 parent d4296e7 commit c7fda6e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/controller/mpi_job_controller_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ type fixture struct {
8686
objects []runtime.Object
8787

8888
gangSchedulingName string
89+
failInformersOnErr bool
8990
}
9091

9192
func newFixture(t *testing.T, gangSchedulingName string) *fixture {
@@ -94,6 +95,7 @@ func newFixture(t *testing.T, gangSchedulingName string) *fixture {
9495
f.objects = []runtime.Object{}
9596
f.kubeObjects = []runtime.Object{}
9697
f.gangSchedulingName = gangSchedulingName
98+
f.failInformersOnErr = false
9799
return f
98100
}
99101

@@ -176,6 +178,7 @@ func (f *fixture) newController(clock clock.WithTicker) (*MPIJobController, info
176178
clock,
177179
metav1.NamespaceAll,
178180
f.gangSchedulingName,
181+
f.failInformersOnErr,
179182
)
180183
if err != nil {
181184
fmt.Println("Failed to setup the controller")

0 commit comments

Comments
 (0)