mirror of
https://github.com/docker/compose.git
synced 2026-09-01 07:11:06 +00:00
Make sure mock metrics server is started before testing metrics
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
parent
5ba0522271
commit
57fbd81772
2 changed files with 12 additions and 4 deletions
|
|
@ -22,7 +22,6 @@ import (
|
|||
"net"
|
||||
"net/http"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/labstack/echo"
|
||||
)
|
||||
|
|
@ -78,7 +77,4 @@ func (s *MockMetricsServer) Start() {
|
|||
s.e.POST("/usage", s.handlePostUsage)
|
||||
_ = s.e.Start(":1323")
|
||||
}()
|
||||
|
||||
// wait a bit for the mock metrics server to actually listen
|
||||
time.Sleep(500 * time.Millisecond)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue