Skip to content

Commit 8d9b764

Browse files
committed
update test
1 parent 131de9c commit 8d9b764

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

internal/lightstep_pb/transform_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ package lightstep_pb
22

33
import (
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

187187
func 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

204204
func TestTransformation_GetClientDropSpans(t *testing.T) {

0 commit comments

Comments
 (0)