(context.Context)
| 92 | } |
| 93 | |
| 94 | func (m *reconnectableMockClient) Close(context.Context) error { |
| 95 | m.mu.Lock() |
| 96 | defer m.mu.Unlock() |
| 97 | // Close the wait channel to unblock Wait(). |
| 98 | select { |
| 99 | case <-m.waitCh: |
| 100 | default: |
| 101 | close(m.waitCh) |
| 102 | } |
| 103 | return nil |
| 104 | } |
| 105 | |
| 106 | func TestToolsAndCallToolRoundTrip(t *testing.T) { |
| 107 | t.Parallel() |