Merge pull request #1474 from jzhou77/fix-traceevent

Fix unit test failure due to trace event names
This commit is contained in:
Jingyu Zhou 2019-04-21 10:37:15 -07:00 committed by GitHub
commit 05c19247b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -106,7 +106,7 @@ TEST_CASE("/flow/TraceEvent") {
doub.emplace_back(g_random->random01());
strIdx.emplace_back(g_random->randomInt(0, strings.size()));
}
TraceEvent("pairsfilled")
TraceEvent("PairsFilled")
.detail("MemoryUsage", getMemoryUsage());
printf("Sleeping for 20 seconds - attach perf now to PID %d\n", getpid());
wait(delay(20));
@ -120,8 +120,8 @@ TEST_CASE("/flow/TraceEvent") {
TraceEvent("TestTraceLineNoDebug")
.detail("Num", num[idx])
.detail("Double", doub[idx])
.detail("str", strings[strIdx[idx]])
.detail("pair", p);
.detail("Str", strings[strIdx[idx]])
.detail("Pair", p);
}
wait(delay(0));
}
@ -136,8 +136,8 @@ TEST_CASE("/flow/TraceEvent") {
TraceEvent(SevDebug, "TestTraceLineDebug")
.detail("Num", num[idx])
.detail("Double", doub[idx])
.detail("str", strings[strIdx[idx]])
.detail("pair", p);
.detail("Str", strings[strIdx[idx]])
.detail("Pair", p);
}
wait(delay(0));
}