File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change 55package otel
66
77import (
8- "context"
98 "os"
109 "path/filepath"
1110 "runtime"
1211 "testing"
13- "time"
1412
1513 "github.com/stretchr/testify/assert"
1614 "go.opentelemetry.io/collector/featuregate"
@@ -60,13 +58,6 @@ func testSample(t *testing.T, configFile string) {
6058 collector , err := otelcol .NewCollector (* settings )
6159 assert .NoError (t , err )
6260 assert .NotNil (t , collector )
63-
64- wg := startCollector (context .Background (), t , collector , "" )
65-
66- assert .Eventually (t , func () bool {
67- return otelcol .StateRunning == collector .GetState ()
68- }, 20 * time .Second , 200 * time .Millisecond )
61+ assert .NoError (t , collector .DryRun (t .Context ()))
6962 collector .Shutdown ()
70- wg .Wait ()
71- assert .Equal (t , otelcol .StateClosed , collector .GetState ())
7263}
You can’t perform that action at this time.
0 commit comments