-
Notifications
You must be signed in to change notification settings - Fork 137
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add context parameter to Reconcile function of the Reconciler interfa…
…ce (#2146) * Reconciler objects don't have context field * context.Background used in tests to start a known context
- Loading branch information
1 parent
547f5e6
commit f1e141d
Showing
24 changed files
with
330 additions
and
340 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
src/controllers/dynakube/activegate/internal/capability/mock.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
package capability | ||
|
||
import "github.com/stretchr/testify/mock" | ||
import ( | ||
"github.com/stretchr/testify/mock" | ||
"golang.org/x/net/context" | ||
) | ||
|
||
type MockReconciler struct { | ||
mock.Mock | ||
} | ||
|
||
func (m *MockReconciler) Reconcile() error { | ||
func (m *MockReconciler) Reconcile(_ context.Context) error { | ||
args := m.Called() | ||
return args.Error(0) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.