Skip to content

Commit

Permalink
Fix hopefully last round of tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nickmisasi committed Nov 1, 2024
1 parent a8b582c commit 6f138cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions controllers/mattermost/mattermost/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,12 +403,11 @@ func TestReconcilingLimit(t *testing.T) {

mm1 := newMattermost("first", "1", mmv1beta.Reconciling)

// Register operator types with the runtime scheme.
s := prepareSchema(t, scheme.Scheme)
s.AddKnownTypes(mmv1beta.GroupVersion, mm1)
s.AddKnownTypes(appsv1.SchemeGroupVersion, &appsv1.ReplicaSet{}, &appsv1.Deployment{})
// Create a fake client to mock API calls.
c := fake.NewClientBuilder().Build()
// Create a ReconcileMattermost object with the scheme and fake client.
c := fake.NewClientBuilder().WithScheme(s).WithStatusSubresource(&mmv1beta.Mattermost{}, &appsv1.ReplicaSet{}, &appsv1.Deployment{}).Build()
r := &MattermostReconciler{
Client: c,
Scheme: s,
Expand Down

0 comments on commit 6f138cd

Please sign in to comment.