bigForm.es.tst 348 B

1234567891011121314151617
  1. /*
  2. bigForm.tst - Stress test very large form data (triggers chunking)
  3. */
  4. const HTTP = tget('TM_HTTP') || "127.0.0.1:8080"
  5. let http: Http = new Http
  6. let form = {}
  7. for (i in 100) {
  8. form["field_" + i] = Date.ticks
  9. }
  10. http.form(HTTP + "/action/test", form)
  11. ttrue(http.status == 200)
  12. ttrue(http.response.contains("name: null"))
  13. http.close()