Skip to content

Commit

Permalink
fix tests part 2
Browse files Browse the repository at this point in the history
  • Loading branch information
ADOT Patch workflow committed Feb 12, 2024
1 parent 534afd0 commit 6673d4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter/awsxrayexporter/internal/translator/segment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1098,7 +1098,7 @@ func validateLocalRootDependencySubsegment(t *testing.T, segment *awsxray.Segmen
assert.NotNil(t, segment.HTTP)
assert.Equal(t, "POST", *segment.HTTP.Request.Method)
assert.Equal(t, 2, len(segment.Annotations))
assert.Nil(t, segment.Annotations[awsRemoteService])
assert.Equal(t, "myRemoteService", segment.Annotations[awsRemoteService])
assert.Nil(t, segment.Annotations[remoteTarget])
assert.Equal(t, "myAnnotationValue", segment.Annotations["myAnnotationKey"])

Expand Down Expand Up @@ -1397,7 +1397,7 @@ func validateLocalRootWithoutDependency(t *testing.T, segment *awsxray.Segment,
assert.Equal(t, expectedTraceID, *segment.TraceID)
assert.Equal(t, "POST", *segment.HTTP.Request.Method)
assert.Equal(t, 2, len(segment.Annotations))
assert.Equal(t, "myRemoteService", segment.Annotations["aws_remote_service"])
assert.Nil(t, segment.Annotations["aws_remote_service"])
assert.Equal(t, "myAnnotationValue", segment.Annotations["myAnnotationKey"])

var numberOfMetadataKeys = 8
Expand Down

0 comments on commit 6673d4d

Please sign in to comment.