Skip to content

Commit 821f559

Browse files
committed
fix redis test
1 parent 94b8628 commit 821f559

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/verifier/verifier.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func VerifyDbAttributes(span tracetest.SpanStub, name, system, address, statemen
3131
actualConnStr := GetAttribute(span.Attributes, "server.address").AsString()
3232
Assert(strings.Contains(actualConnStr, address), "Except client address str to be %s, got %s", address, actualConnStr)
3333
actualStatement := GetAttribute(span.Attributes, "db.query.text").AsString()
34-
Assert(actualStatement == statement, "Except client db statement to be %s, got %s", statement, actualStatement)
34+
Assert(strings.Contains(actualStatement, statement), "Except client db statement to be %s, got %s", statement, actualStatement)
3535
actualOperation := GetAttribute(span.Attributes, "db.operation.name").AsString()
3636
Assert(actualOperation == operation, "Except client db operation to be %s, got %s", operation, actualOperation)
3737
}

0 commit comments

Comments
 (0)