diff options
Diffstat (limited to 'tests/plugins/server/server_plugin_test.go')
-rw-r--r-- | tests/plugins/server/server_plugin_test.go | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/tests/plugins/server/server_plugin_test.go b/tests/plugins/server/server_plugin_test.go index c0c3c993..06c9eb50 100644 --- a/tests/plugins/server/server_plugin_test.go +++ b/tests/plugins/server/server_plugin_test.go @@ -23,22 +23,13 @@ func TestAppPipes(t *testing.T) { vp := &config.Viper{} vp.Path = "configs/.rr.yaml" vp.Prefix = "rr" - err = container.Register(vp) - if err != nil { - t.Fatal(err) - } - - err = container.Register(&server.Plugin{}) - if err != nil { - t.Fatal(err) - } - err = container.Register(&Foo{}) - if err != nil { - t.Fatal(err) - } - - err = container.Register(&logger.ZapLogger{}) + err = container.RegisterAll( + vp, + &server.Plugin{}, + &Foo{}, + &logger.ZapLogger{}, + ) if err != nil { t.Fatal(err) } |