Skip to content

Commit

Permalink
Re introduce disabled type test
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
  • Loading branch information
akalenyu committed Nov 15, 2023
1 parent 709ba1c commit 2b7aebd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/sdk/reconciler/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,10 @@ var _ = Describe("Reconciler", func() {
Expect(err).ToNot(HaveOccurred())

Expect(args.mockController.WatchCalls).To(HaveLen(1))
// src := args.mockController.WatchCalls[0].Src
// // kind, ok := src.(*source.Kind)
// // Expect(ok).To(BeTrue())
// // Expect(kind.Type).To(BeAssignableToTypeOf(&testcr.Config{}))
src := args.mockController.WatchCalls[0].Src
v := reflect.ValueOf(src).Elem()
t := v.FieldByName("Type").Interface().(client.Object)
Expect(t).To(BeAssignableToTypeOf(&testcr.Config{}))
})
})

Expand Down

0 comments on commit 2b7aebd

Please sign in to comment.