ExpectWarning declares a warning to be expected.
(expr string)
| 184 | |
| 185 | // ExpectWarning declares a warning to be expected. |
| 186 | func ExpectWarning(expr string) { |
| 187 | expectLogsN(expr, 1, warningLog) |
| 188 | } |
| 189 | |
| 190 | func expectLogsN(expr string, n int, logType logType) { |
| 191 | tLogr.mu.Lock() |