Use Timeout#timeout for warnings tests