()
| 580 | } |
| 581 | |
| 582 | func (c *testingClient) expectNoMessage() { |
| 583 | select { |
| 584 | case <-time.After(50 * time.Millisecond): |
| 585 | // no message == as expected |
| 586 | case msg := <-c.readMessage: |
| 587 | assert.Fail(c.t, "Expected NO message but there was one :(", fmt.Sprint(msg)) |
| 588 | } |
| 589 | } |
| 590 | |
| 591 | func bootTestServer(handlerFunc gin.HandlerFunc) (*httptest.Server, *API) { |
| 592 | r := gin.New() |
no outgoing calls
no test coverage detected