Skip to content

Commit

Permalink
tests clean up plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
matt2e committed Nov 4, 2024
1 parent 5c54835 commit 614d5e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/buildengine/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ import (
)

func TestGraph(t *testing.T) {
ctx := log.ContextWithNewDefaultLogger(context.Background())
ctx, cancel := context.WithCancel(log.ContextWithNewDefaultLogger(context.Background()))
t.Cleanup(cancel)

bindURL, err := url.Parse("http://127.0.0.1:8893")
assert.NoError(t, err)
Expand Down
3 changes: 3 additions & 0 deletions jvm-runtime/plugin/common/java_plugin_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ func TestJavaConfigDefaults(t *testing.T) {
assert.NoError(t, err)
plugin, err := languageplugin.New(ctx, allocator, "java", "test")
assert.NoError(t, err)
t.Cleanup(func() {
plugin.Kill()

Check failure on line 79 in jvm-runtime/plugin/common/java_plugin_test.go

View workflow job for this annotation

GitHub Actions / Lint

Error return value of `plugin.Kill` is not checked (errcheck)
})

defaults, err := plugin.ModuleConfigDefaults(ctx, dir)
assert.NoError(t, err)
Expand Down

0 comments on commit 614d5e6

Please sign in to comment.