{"push_id":638673404,"size":1,"distinct_size":1,"ref":"refs/heads/quentin/wait-on-http","head":"9902c8d2b60bfe037b6ac99e0d523bf3e6e12cd0","before":"861b667bea2beeaeabafefd5c6da784c7cfa4d8a","commits":[{"sha":"9902c8d2b60bfe037b6ac99e0d523bf3e6e12cd0","author":{"email":"6235427b05b2662d5c7620b5c00112860d481e88@datadoghq.com","name":"Quentin Madec"},"message":"[ci] replace sleep_for by a smarter function\n\n`Wait.for` can receive either:\n- a port (`Wait.for 7199`), and will return when the port is open\n- an url (`Wait.for 'http://localhost:8080'`), and will return when\n  receiving a 2xx response code\n- a file (`Wait.for '/tmp/started'`), and will return when the file\n  exists\n\nIt has a default timeout of 5s, which can be configured as its second\nparameter: `Wait.for 'http://localhost:8080', 10`","distinct":true,"url":"https://api.github.com/repos/DataDog/dd-agent/commits/9902c8d2b60bfe037b6ac99e0d523bf3e6e12cd0"}]}