Skip to content

Commit

Permalink
Reorder asserts to avoid TSAN failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed Mar 23, 2016
1 parent e3af44e commit 9498bb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/core/end2end/fixtures/h2_full+trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,14 @@ int main(int argc, char **argv) {
grpc_test_init(argc, argv);
grpc_init();

for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) {
grpc_end2end_tests(argc, argv, configs[i]);
}

GPR_ASSERT(0 == grpc_tracer_set_enabled("also-doesnt-exist", 0));
GPR_ASSERT(1 == grpc_tracer_set_enabled("http", 1));
GPR_ASSERT(1 == grpc_tracer_set_enabled("all", 1));

for (i = 0; i < sizeof(configs) / sizeof(*configs); i++) {
grpc_end2end_tests(argc, argv, configs[i]);
}

grpc_shutdown();

return 0;
Expand Down

0 comments on commit 9498bb1

Please sign in to comment.