Unverified Commit 79dcf456 authored by Ge Jun's avatar Ge Jun Committed by GitHub

Merge pull request #504 from TousakaRin/circuit_breaker

Fix bug: Unit test for circuit_breaker occasionally fails
parents 4f545e79 bd572c58
......@@ -173,7 +173,7 @@ TEST_F(CircuitBreakerTest, isolation_duration_grow) {
EXPECT_EQ(_circuit_breaker.isolation_duration_ms(), kMinIsolationDurationMs * 4);
_circuit_breaker.Reset();
bthread_usleep(kMaxIsolationDurationMs * 1000);
bthread_usleep((kMaxIsolationDurationMs + kMinIsolationDurationMs) * 1000);
StartFeedbackThread(&thread_list, &fc_list, 100);
for (int i = 0; i < kThreadNum; ++i) {
void* ret_data = NULL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment