Skip to content

Commit

Permalink
fix(responsemanager): make TestCancellationQueryInProgress less strict
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Jan 10, 2022
1 parent 0a6c17b commit 04bf81f
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions responsemanager/responsemanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,10 @@ func TestCancellationQueryInProgress(t *testing.T) {
td.assertRequestCleared()

tracing := td.collectTracing(t)
require.ElementsMatch(t, []string{
"processRequests(0)",
"response(0)->executeTask(0)->processBlock(0)->loadBlock(0)",
"response(0)->executeTask(0)->processBlock(0)->sendBlock(0)->processBlockHooks(0)",
"response(0)->executeTask(0)->processBlock(1)->loadBlock(0)",
"response(0)->executeTask(0)->processBlock(1)->sendBlock(0)",
"response(0)->abortRequest(0)",
"processRequests(1)",
}, tracing.TracesToStrings())
traceStrings := tracing.TracesToStrings()
require.Contains(t, traceStrings, "processRequests(0)")
require.Contains(t, traceStrings, "response(0)->abortRequest(0)")
require.Contains(t, traceStrings, "processRequests(1)")
message0Span := tracing.FindSpanByTraceString("processRequests(0)")
message1Span := tracing.FindSpanByTraceString("processRequests(1)")
responseSpan := tracing.FindSpanByTraceString("response(0)")
Expand Down

0 comments on commit 04bf81f

Please sign in to comment.