Skip to content

Commit

Permalink
Merge branch 'bwest' into assert_writes
Browse files Browse the repository at this point in the history
  • Loading branch information
ctiller committed Feb 3, 2017
2 parents 0dad5d3 + d3c8fc0 commit c80683d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 2 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2955,6 +2955,8 @@ targets:
- grpc
- gpr_test_util
- gpr
args:
- --benchmark_min_time=0
platforms:
- mac
- linux
Expand Down
2 changes: 1 addition & 1 deletion templates/tools/run_tests/generated/tests.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"gtest": tgt.gtest,
"exclude_configs": tgt.get("exclude_configs", []),
"exclude_iomgrs": tgt.get("exclude_iomgrs", []),
"args": [],
"args": tgt.get("args", []),
"flaky": tgt.flaky,
"cpu_cost": tgt.get("cpu_cost", 1.0)}
for tgt in targets
Expand Down
2 changes: 1 addition & 1 deletion test/core/end2end/bad_server_response_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ static void handle_read(grpc_exec_ctx *exec_ctx, void *arg, grpc_error *error) {

gpr_log(GPR_DEBUG, "got %" PRIuPTR " bytes, expected %" PRIuPTR " bytes",
state.incoming_data_length, EXPECTED_INCOMING_DATA_LENGTH);
if (state.incoming_data_length > EXPECTED_INCOMING_DATA_LENGTH) {
if (state.incoming_data_length >= EXPECTED_INCOMING_DATA_LENGTH) {
handle_write(exec_ctx);
} else {
grpc_endpoint_read(exec_ctx, state.tcp, &state.temp_incoming_buffer,
Expand Down
5 changes: 0 additions & 5 deletions test/core/end2end/tests/resource_quota_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,11 +353,6 @@ void resource_quota_server(grpc_end2end_test_config config) {
NUM_CALLS, cancelled_calls_on_server, cancelled_calls_on_client,
deadline_exceeded);

/* The call may be cancelled after the server has sent its status but before
* the client has received it. This means that we should see strictly more
* failures on the client than on the server. */
GPR_ASSERT(cancelled_calls_on_client >= cancelled_calls_on_server);

grpc_byte_buffer_destroy(request_payload);
grpc_slice_unref(request_payload_slice);
grpc_resource_quota_unref(resource_quota);
Expand Down
3 changes: 2 additions & 1 deletion test/core/transport/bdp_estimator_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ static void test_get_estimate_random_values(size_t n) {
grpc_bdp_estimator est;
grpc_bdp_estimator_init(&est, "test");
int min = INT_MAX;
int max = INT_MIN;
int max = 65535; // Windows rand() has limited range, make sure the ASSERT
// passes
for (size_t i = 0; i < n; i++) {
int sample = rand();
if (sample < min) min = sample;
Expand Down
4 changes: 3 additions & 1 deletion tools/run_tests/generated/tests.json
Original file line number Diff line number Diff line change
Expand Up @@ -2452,7 +2452,9 @@
]
},
{
"args": [],
"args": [
"--benchmark_min_time=0"
],
"ci_platforms": [
"linux",
"mac",
Expand Down

0 comments on commit c80683d

Please sign in to comment.