gitoria

kunibert

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commit900ffcd4900ffcd4status: routgermre900ffcd4/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

  • 900ffcd4status: routgermre
  • 59b0b793log: routger merge waitmre
  • e52f094alog: routger intake check (hycon#122)mre
  • f979027frecords: design rule livemre
  • 71efaf84Merge branch 'design-guard' into mainKunibert
  • c0656581|||PR Flag removal of a documented design as major unless his recorded yes is linked; rules version 5mre
  • 901cdd75records: L10 update 2 livemre
  • 4a68016bMerge branch 'hl-standard-l10b' into mainKunibert
  • 246d0f30|||PR HL-STANDARD L10 update (hybriel ab293e5a), rules version 4mre
  • 1aa4d64crecords: HL-STANDARD L10 update livemre
  • 2b04c240Merge branch 'hl-standard-l10' into mainKunibert
  • 88c7b09d|||PR HL-STANDARD L10 update (hybriel 5885d688), rules version 3mre
  • 00869ecbrecords: gitoria#50 step 3 livemre
  • f97a0e5fMerge branch 'hl-standard' into mainKunibert
  • 9710e39fType STANDARD as String (L10, Kunibert review)mre
  • 4140b664|||PR Review against HL-STANDARD and cite rule ids (gitoria#50 step 3)mre
  • 75c6888drecords: gitoria#50 step 1 connected and provenmre
  • aa6d997frecords: gitoria#50 connect plan, Anton reportmre
  • 8a190ba7Records: kunibert#18 and #15 donemre
  • 2eee9dbbMerge branch 'revendor-day44' into mainKunibert