Skip to content

Commit 0029d01

Browse files
committed
Pass runCtx into supervisor Health check test
Without a valid `runCtx`, anything that attempts to use the context segfaults. In open-telemetry/opentelemetry-collector#14058 I am using the context, so this test borks. This adds the runCtx to fix it. Signed-off-by: sinkingpoint <[email protected]>
1 parent 01b0197 commit 0029d01

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/opampsupervisor/supervisor/supervisor_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,6 +2189,7 @@ func TestSupervisor_HealthCheckServer(t *testing.T) {
21892189

21902190
t.Run("Health check server errors out if port is in-use", func(t *testing.T) {
21912191
newSupervisor := &Supervisor{
2192+
runCtx: t.Context(),
21922193
telemetrySettings: newNopTelemetrySettings(),
21932194
persistentState: &persistentState{InstanceID: testUUID},
21942195
cfgState: &atomic.Value{},

0 commit comments

Comments
 (0)