MCPcopy Index your code
hub / github.com/gotify/server / expectNoMessage

Method expectNoMessage

api/stream/stream_test.go:582–589  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

580}
581
582func (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
591func bootTestServer(handlerFunc gin.HandlerFunc) (*httptest.Server, *API) {
592 r := gin.New()

Callers 4

TestWriteMessageFailsFunction · 0.80
TestWritePingFailsFunction · 0.80
expectNoMessageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected