MCPcopy
hub / github.com/gotify/server / expectMessage

Method expectMessage

api/stream/stream_test.go:561–568  ·  view source on GitHub ↗
(expected *model.MessageExternal)

Source from the content-addressed store, hash-verified

559}
560
561func (c *testingClient) expectMessage(expected *model.MessageExternal) {
562 select {
563 case <-time.After(50 * time.Millisecond):
564 assert.Fail(c.t, "Expected message but none was send :(")
565 case actual := <-c.readMessage:
566 assert.Equal(c.t, *expected, actual)
567 }
568}
569
570func expectMessage(expected *model.MessageExternal, clients ...*testingClient) {
571 for _, client := range clients {

Callers 4

TestPingFunction · 0.80
expectMessageFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected