// Wipe otp_requests rows for TEST_PHONE so repeated runs don't trip the 60s
// cooldown or the 3/hour rate-limit. Does NOT drop the mitra row — mitras
// are seeded separately via seed_mitra.js.
const phone = TEST_PHONE
const url = BACKEND_INTERNAL_URL || 'http://localhost:3001'
const resp = http.post(`${url}/internal/_test/reset-phone`, {
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ phone }),
})
if (resp.status !== 200) {
  throw new Error(`reset-phone failed (${resp.status}): ${resp.body}`)
}
