Skip to content

Commit 58f6962

Browse files
PantaniPantani
Pantani
authored and
Pantani
committed
add stderr for plugin integration test command
1 parent 9ea8eaa commit 58f6962

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: ignite/services/plugin/template/integration/app_test.go.plush

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func Test<%= Title %>(t *testing.T) {
3838
Path: pluginPath,
3939
},
4040
})
41-
assertGlobalPlugins(t, app, nil)
41+
assertGlobalPlugins(t, nil)
4242

4343
buf := &bytes.Buffer{}
4444
env.Must(env.Exec("run <%= Name %>",
@@ -50,6 +50,7 @@ func Test<%= Title %>(t *testing.T) {
5050
),
5151
step.Workdir(app.SourcePath()),
5252
step.Stdout(buf),
53+
step.Stderr(buf),
5354
)),
5455
))
5556
require.Equal("Hello, world!\n", buf.String())
@@ -62,7 +63,7 @@ func assertLocalPlugins(t *testing.T, app envtest.App, expectedPlugins []plugins
6263
require.ElementsMatch(t, expectedPlugins, cfg.Apps, "unexpected local apps")
6364
}
6465

65-
func assertGlobalPlugins(t *testing.T, app envtest.App, expectedPlugins []pluginsconfig.Plugin) {
66+
func assertGlobalPlugins(t *testing.T, expectedPlugins []pluginsconfig.Plugin) {
6667
t.Helper()
6768
cfgPath, err := plugin.PluginsPath()
6869
require.NoError(t, err)

0 commit comments

Comments
 (0)