summaryrefslogtreecommitdiff
path: root/tests/plugins/informer/test_plugin.go
diff options
context:
space:
mode:
authorValery Piashchynski <[email protected]>2021-07-11 10:11:22 +0300
committerValery Piashchynski <[email protected]>2021-07-11 10:11:22 +0300
commit589f759cc2411319adbca2ece0dbe212407d1eba (patch)
tree2fbea4a6033d65813c41fd80f6339a524b46c9b2 /tests/plugins/informer/test_plugin.go
parentcb2665d93ad7abe1ab30508ff0e2bd4d0bc379ea (diff)
Update informer interface to return slice of pointers (do not over-copy
the Stat structure). Make amqp Push concurrent safe. 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, 2 insertions, 2 deletions
diff --git a/tests/plugins/informer/test_plugin.go b/tests/plugins/informer/test_plugin.go
index 62816d02..095140b8 100644
--- a/tests/plugins/informer/test_plugin.go
+++ b/tests/plugins/informer/test_plugin.go
@@ -51,13 +51,13 @@ func (p1 *Plugin1) Name() string {
func (p1 *Plugin1) Available() {}
-func (p1 *Plugin1) Workers() []process.State {
+func (p1 *Plugin1) Workers() []*process.State {
p, err := p1.server.NewWorkerPool(context.Background(), testPoolConfig, nil)
if err != nil {
panic(err)
}
- ps := make([]process.State, 0, len(p.Workers()))
+ ps := make([]*process.State, 0, len(p.Workers()))
workers := p.Workers()
for i := 0; i < len(workers); i++ {
state, err := process.WorkerProcessState(workers[i])