()
| 208 | } |
| 209 | |
| 210 | func (w *WebhookReceiverResult) Payloads() []ReceivedPayload { |
| 211 | w.mu.Lock() |
| 212 | defer w.mu.Unlock() |
| 213 | result := make([]ReceivedPayload, len(w.payloads)) |
| 214 | copy(result, w.payloads) |
| 215 | return result |
| 216 | } |
| 217 | |
| 218 | func (w *WebhookReceiverResult) WaitForPayloads(t *testing.T, count int, timeout time.Duration) []ReceivedPayload { |
| 219 | t.Helper() |