Skip to content

Commit

Permalink
Fix flaky integration test. (envoyproxy#319)
Browse files Browse the repository at this point in the history
  • Loading branch information
qiwzhang committed May 16, 2017
1 parent 957fe69 commit 36ac1b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/envoy/mixer/integration_test/http_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ func (s *HttpServer) Start() {
http.Serve(s.lis, nil)
}()

addr := fmt.Sprintf("http://localhost:%s", s.port)
addr := fmt.Sprintf("http://localhost:%v", s.port)

const maxAttempts = 10
const maxAttempts = 30
for i := 0; i < maxAttempts; i++ {
time.Sleep(time.Second)
client := http.Client{}
Expand Down

0 comments on commit 36ac1b1

Please sign in to comment.