File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ package lightstep_pb
22
33import (
44 "context"
5+ "testing"
6+
57 "github.com/golang/protobuf/ptypes/timestamp"
68 "github.com/matryer/is"
79 "go.opentelemetry.io/collector/component"
@@ -10,9 +12,7 @@ import (
1012 "go.opentelemetry.io/collector/receiver"
1113 "go.opentelemetry.io/otel/trace/noop"
1214 "go.uber.org/zap"
13- "testing"
1415
15- lightstepCommon "github.com/zalando/otelcol-lightstep-receiver/internal/lightstep_common"
1616 pb "github.com/zalando/otelcol-lightstep-receiver/internal/lightstep_pb/collectorpb"
1717 "github.com/zalando/otelcol-lightstep-receiver/internal/telemetry"
1818)
@@ -181,7 +181,7 @@ func TestTransformation_NoServiceName(t *testing.T) {
181181 telemetry : initTelemetry (),
182182 }
183183 _ , err := rq .ToOtel (context .Background ())
184- is .Equal (err , lightstepCommon . ErrNoServiceName )
184+ is .Equal (err , nil )
185185}
186186
187187func TestTransformation_NoAccessToken (t * testing.T ) {
@@ -198,7 +198,7 @@ func TestTransformation_NoAccessToken(t *testing.T) {
198198 telemetry : initTelemetry (),
199199 }
200200 _ , err := rq .ToOtel (context .Background ())
201- is .Equal (err , lightstepCommon . ErrNoAccessToken )
201+ is .Equal (err , nil )
202202}
203203
204204func TestTransformation_GetClientDropSpans (t * testing.T ) {
You can’t perform that action at this time.
0 commit comments