Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mathnogueira committed Feb 20, 2024
1 parent f005655 commit 5f46d4a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions server/expression/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ func TestStringInterpolationExecution(t *testing.T) {
ShouldPass: true,
AttributeDataStore: expression.AttributeDataStore{
Span: traces.Span{
ID: id.NewRandGenerator().SpanID(),
Attributes: traces.NewAttributes(map[string]string{
"text": "this run took 25ms",
}),
Expand All @@ -188,6 +189,7 @@ func TestFilterExecution(t *testing.T) {
ShouldPass: true,
AttributeDataStore: expression.AttributeDataStore{
Span: traces.Span{
ID: id.NewRandGenerator().SpanID(),
Attributes: traces.NewAttributes(map[string]string{
"tracetest.response.body": `{"id": 8, "name": "john doe"}`,
}),
Expand Down Expand Up @@ -408,6 +410,7 @@ func TestResolveStatementAttributeExecution(t *testing.T) {

AttributeDataStore: expression.AttributeDataStore{
Span: traces.Span{
ID: id.NewRandGenerator().SpanID(),
Attributes: traces.NewAttributes(map[string]string{
"my_attribute": "42",
}),
Expand All @@ -427,6 +430,7 @@ func TestResolveStatementStringInterpolationExecution(t *testing.T) {
ShouldPass: true,
AttributeDataStore: expression.AttributeDataStore{
Span: traces.Span{
ID: id.NewRandGenerator().SpanID(),
Attributes: traces.NewAttributes(map[string]string{
"text": "this run took 25ms",
}),
Expand All @@ -451,6 +455,7 @@ func TestResolveStatementFilterExecution(t *testing.T) {
ShouldPass: true,
AttributeDataStore: expression.AttributeDataStore{
Span: traces.Span{
ID: id.NewRandGenerator().SpanID(),
Attributes: traces.NewAttributes(map[string]string{
"tracetest.response.body": `{"id": 8, "name": "john doe"}`,
}),
Expand Down Expand Up @@ -512,6 +517,7 @@ func TestFailureCases(t *testing.T) {

AttributeDataStore: expression.AttributeDataStore{
Span: traces.Span{
ID: id.NewRandGenerator().SpanID(),
Attributes: traces.NewAttributes(map[string]string{
"attr1": "1",
"attr2": "2",
Expand Down

0 comments on commit 5f46d4a

Please sign in to comment.