Skip to content

Commit

Permalink
Fix integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ehsan-saradar committed Feb 5, 2024
1 parent 19838c2 commit 72af444
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/hello-world/integration/app_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,14 @@ func TestHelloWorld(t *testing.T) {
}

func assertLocalPlugins(t *testing.T, app envtest.App, expectedPlugins []pluginsconfig.Plugin) {
t.Helper()
cfg, err := pluginsconfig.ParseDir(app.SourcePath())
require.NoError(t, err)
require.ElementsMatch(t, expectedPlugins, cfg.Apps, "unexpected local apps")
}

func assertGlobalPlugins(t *testing.T, app envtest.App, expectedPlugins []pluginsconfig.Plugin) {
t.Helper()
cfgPath, err := plugin.PluginsPath()
require.NoError(t, err)
cfg, err := pluginsconfig.ParseDir(cfgPath)
Expand Down

0 comments on commit 72af444

Please sign in to comment.