Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ require (
go.opentelemetry.io/otel/sdk/metric v1.39.0 // indirect
go.opentelemetry.io/otel/trace v1.39.0 // indirect
go.opentelemetry.io/proto/otlp v1.9.0 // indirect
go.uber.org/goleak v1.3.0 // indirect
go.uber.org/mock v0.6.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.yaml.in/yaml/v2 v2.4.2 // indirect
Expand Down
11 changes: 11 additions & 0 deletions internal/daemon/controller/main_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package controller

import (
"testing"

"go.uber.org/goleak"
)

func TestMain(m *testing.M) {
goleak.VerifyTestMain(m, goleak.IgnoreCurrent())
}
11 changes: 11 additions & 0 deletions internal/daemon/runtime/main_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package runtime

import (
"testing"

"go.uber.org/goleak"
)

func TestMain(m *testing.M) {
goleak.VerifyTestMain(m, goleak.IgnoreCurrent())
}
4 changes: 2 additions & 2 deletions internal/daemon/runtime/service_launchd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ func TestRenderPlist(t *testing.T) {
Command: []string{"/usr/bin/stabled", "start", "--home", "/data/node0"},
WorkingDirectory: "/data/node0",
Environment: map[string]string{
"HOME": "/data/node0",
"MYVAR": "myval",
"HOME": "/data/node0",
"MYVAR": "myval",
},
StdoutPath: "/var/log/testnode.log",
StderrPath: "/var/log/testnode.err",
Expand Down
17 changes: 17 additions & 0 deletions internal/daemon/server/main_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package server

import (
"testing"

"go.uber.org/goleak"
)

func TestMain(m *testing.M) {
goleak.VerifyTestMain(
m,
goleak.IgnoreCurrent(),
// StreamProvisionLogs can outlive test cancellation when channel-close
// paths are exercised in isolated goroutines.
goleak.IgnoreTopFunction("github.com/altuslabsxyz/devnet-builder/internal/daemon/server.(*DevnetService).StreamProvisionLogs"),
)
}
Loading