Skip to content

Commit c7ef795

Browse files
committed
sql: fix dRPC-related flake in TestTrace
When we use dRPC, there is an additional tracing span `/cockroach.roachpb.KVBatch/Batch` that we don't create with gRPC, so mark it as optional in the test. Release note: None
1 parent b276200 commit c7ef795

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/sql/trace_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ func TestTrace(t *testing.T) {
5252
"local proposal",
5353
"admissionWorkQueueWait",
5454
"index recommendation",
55+
"/cockroach.roachpb.KVBatch/Batch", // present with dRPC, absent with gRPC
5556
}
5657
// Depending on whether the data is local or not, we may not see these
5758
// spans. Only applicable with distsql=on.

0 commit comments

Comments
 (0)