(code websocket.StatusCode, reason string)
| 431 | } |
| 432 | |
| 433 | func (f *fakePingerCloser) Close(code websocket.StatusCode, reason string) error { |
| 434 | f.Lock() |
| 435 | defer f.Unlock() |
| 436 | if f.closed { |
| 437 | return nil |
| 438 | } |
| 439 | f.closed = true |
| 440 | f.code = code |
| 441 | f.reason = reason |
| 442 | return nil |
| 443 | } |
| 444 | |
| 445 | func (f *fakePingerCloser) requireNotClosed(t *testing.T) { |
| 446 | f.Lock() |