diff options
author | Valery Piashchynski <[email protected]> | 2020-10-26 11:39:23 +0300 |
---|---|---|
committer | Valery Piashchynski <[email protected]> | 2020-10-26 11:39:23 +0300 |
commit | db7695463e85faf3fba6a2767b2dfa6ef916785d (patch) | |
tree | 9e85c54c88c264945ffa95c3f29e71ad24612b46 /plugins | |
parent | a26a4dde929f260c3256084d104eeebc64409d22 (diff) | |
parent | 68bf13772c6ddfc5159c2a286e1a38e911614e72 (diff) |
Merge branch 'release_2.0' into feature/new-worker-produces-active-worker
Diffstat (limited to 'plugins')
-rwxr-xr-x | plugins/factory/tests/factory_test.go | 7 | ||||
-rwxr-xr-x | plugins/factory/tests/plugin_1.go | 4 |
2 files changed, 3 insertions, 8 deletions
diff --git a/plugins/factory/tests/factory_test.go b/plugins/factory/tests/factory_test.go index 5347083a..6c264fd6 100755 --- a/plugins/factory/tests/factory_test.go +++ b/plugins/factory/tests/factory_test.go @@ -31,11 +31,6 @@ func TestFactory(t *testing.T) { t.Fatal(err) } - err = container.Register(&factory.WFactory{}) - if err != nil { - t.Fatal(err) - } - err = container.Register(&Foo{}) if err != nil { t.Fatal(err) @@ -65,7 +60,7 @@ func TestFactory(t *testing.T) { for { select { case e := <-errCh: - assert.NoError(t, e.Error.Err) + assert.NoError(t, e.Error) assert.NoError(t, container.Stop()) return case <-c: diff --git a/plugins/factory/tests/plugin_1.go b/plugins/factory/tests/plugin_1.go index f6b06dd0..df632481 100755 --- a/plugins/factory/tests/plugin_1.go +++ b/plugins/factory/tests/plugin_1.go @@ -10,10 +10,10 @@ import ( type Foo struct { configProvider config.Provider - spawner factory.Spawner + spawner factory.AppFactory } -func (f *Foo) Init(p config.Provider, spw factory.Spawner) error { +func (f *Foo) Init(p config.Provider, spw factory.AppFactory) error { f.configProvider = p f.spawner = spw return nil |