gitoria

tracker

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit585782df585782dfLog: tracker#60 Chrome look, STATUS rewrittenmre585782df/plugins/fetch/tests/refused_catch.hl

635 B

  1. import { fetch } from 'hl:fetch'
  2. import { env } from 'hl:proc'
  3. \* Mission 517: a refused connection, an unknown host and a connect timeout are
  4. ordinary errors that `on Error` absorbs; fetch then gives back null. *\
  5. let caught = 0
  6. on Error(e) {
  7. console.log('caught: ' + e.message)
  8. caught = caught + 1
  9. }
  10. let port = env('HL_TEST_PORT')
  11. let a = fetch('http://127.0.0.1:' + port + '/x', { method = 'POST' json = { a = 1 } })
  12. let b = fetch('https://127.0.0.1:' + port + '/x')
  13. let c = fetch('http://nonexistent.invalid/x', { timeoutMs = 3000 })
  14. console.log('done ' + caught + ' ' + (a == null) + ' ' + (b == null) + ' ' + (c == null))

Branches

Latest commits

  • 585782dfLog: tracker#60 Chrome look, STATUS rewrittenmre
  • 147d0172conductor: caramboleyo is the user, not owner/creatorApollo
  • 21dd0cfblog: #60 live measurement, reviewmre
  • 7793cf94HM62b report: person indexes with fixed mpackdbmre
  • 09d66ed5status: #60 livemre
  • 4171672flog: #60 livemre
  • f52862a2log: HM62b startedmre
  • 88fde2c4mission HM62bmre
  • a722e526log: #62 blocked by hybriel#317mre
  • 074a7418log: #62 assigned to Tracker; pending rulemre
  • 06f6ae8fHM62 report: mpackdb index gapmre
  • 86fe5430log: HM62 startedmre
  • 755307bbmission HM62mre
  • 4b2f2995HM61 report: tracker#61 packed people ordermre
  • 48faa84flog: #60 deploy startedmre
  • 90734c6cMerge branch 'hm60-shortids'mre
  • e0db0d1bHM60 report: tracker#60 packed short-ID ownersmre
  • 3c79b576Pack short-ID ownership into byte buffersmre
  • e822524bstatus wordingmre
  • 1c7f0480log: HM60/HM61 startedmre