Skip to content
Snippets Groups Projects
Commit c72275df authored by Nicolas Noble's avatar Nicolas Noble
Browse files

Merge pull request #2841 from ctiller/trace-tests-are-giving-me-a-headache

Only slow down tracing tests if stdout isatty
parents 4720f323 2d91b5de
No related branches found
No related tags found
No related merge requests found
......@@ -148,7 +148,11 @@ int main(int argc, char **argv) {
/* force tracing on, with a value to force many
code paths in trace.c to be taken */
gpr_setenv("GRPC_TRACE", "doesnt-exist,http,all");
#ifdef GPR_POSIX_SOCKET
g_fixture_slowdown_factor = isatty(STDOUT_FILENO) ? 10.0 : 1.0;
#else
g_fixture_slowdown_factor = 10.0;
#endif
grpc_test_init(argc, argv);
grpc_init();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment