summaryrefslogtreecommitdiff
path: root/tests/plugins/informer/test_plugin.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-04-30 13:09:18 +0300
committerValery Piashchynski <[email protected]>2021-04-30 13:09:18 +0300
commitd0dccb0c761df45da7fba00340f1cd5c66c71711 (patch)
tree8b1bc547a843dd9601faee26cf1c92876cfbb054 /tests/plugins/informer/test_plugin.go
parent50aa751dcefc0ab0e96594a5f111ead316a34a70 (diff)
- Add Availabler interface implementaion for all plugins
- Add tests Signed-off-by: Valery Piashchynski <[email protected]>
Diffstat (limited to 'tests/plugins/informer/test_plugin.go')
-rw-r--r--tests/plugins/informer/test_plugin.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/plugins/informer/test_plugin.go b/tests/plugins/informer/test_plugin.go
index 0c9065a3..db757110 100644
--- a/tests/plugins/informer/test_plugin.go
+++ b/tests/plugins/informer/test_plugin.go
@@ -49,6 +49,10 @@ func (p1 *Plugin1) Name() string {
return "informer.plugin1"
}
+func (p1 *Plugin1) Available() bool {
+ return true
+}
+
func (p1 *Plugin1) Workers() []process.State {
p, err := p1.server.NewWorkerPool(context.Background(), testPoolConfig, nil)
if err != nil {