(p []byte)
| 74 | type slow struct{ n int } |
| 75 | |
| 76 | func (sr *slow) Read(p []byte) (n int, err error) { |
| 77 | if sr.n <= 0 { |
| 78 | return 0, io.EOF |
| 79 | } |
| 80 | sr.n-- |
| 81 | time.Sleep(10 * time.Millisecond) |
| 82 | p[0] = 'A' |
| 83 | return 1, nil |
| 84 | } |
| 85 | |
| 86 | func TestNoRaceObjectDoublePut(t *testing.T) { |
| 87 | s := RunBasicJetStreamServer() |
no outgoing calls
no test coverage detected