MCPcopy
hub / github.com/google/seesaw / nextNote

Method nextNote

engine/sync_test.go:55–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53}
54
55func (tsd *testNoteDispatcher) nextNote() (*SyncNote, error) {
56 select {
57 case n := <-tsd.notes:
58 return n, nil
59 case <-time.After(time.Second):
60 return nil, errors.New("timed out waiting for note")
61 }
62}
63
64func newSyncTest() (*net.TCPListener, *syncClient, *syncServer, *testNoteDispatcher, error) {
65 ln, addr, err := newLocalTCPListener()

Callers 3

TestBasicSyncFunction · 0.80
TestSyncHeartbeatsFunction · 0.80
TestSyncDesyncFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected