We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94b8628 commit 821f559Copy full SHA for 821f559
test/verifier/verifier.go
@@ -31,7 +31,7 @@ func VerifyDbAttributes(span tracetest.SpanStub, name, system, address, statemen
31
actualConnStr := GetAttribute(span.Attributes, "server.address").AsString()
32
Assert(strings.Contains(actualConnStr, address), "Except client address str to be %s, got %s", address, actualConnStr)
33
actualStatement := GetAttribute(span.Attributes, "db.query.text").AsString()
34
- Assert(actualStatement == statement, "Except client db statement to be %s, got %s", statement, actualStatement)
+ Assert(strings.Contains(actualStatement, statement), "Except client db statement to be %s, got %s", statement, actualStatement)
35
actualOperation := GetAttribute(span.Attributes, "db.operation.name").AsString()
36
Assert(actualOperation == operation, "Except client db operation to be %s, got %s", operation, actualOperation)
37
}
0 commit comments