gitoria

gitoria

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitfd4fc028fd4fc028Exercise member status reads with a populated check statemrefd4fc028/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

  • fd4fc028Exercise member status reads with a populated check statemre
  • 536ca6f9Allow repository members to read pull workflow APIs with user tokensmre
  • 705dd834W49 missionmre
  • b554cd5flogmre
  • f4c9440ddeploy.sh: tar --hard-dereference for the live data backupmre
  • 1a687b15Merge branch 'w48-member-merge'mre
  • 166c775fW48 report, logmre
  • 1b4623f0Members merge pull requests: API route, button on /pulls and /pulls/N, one shared merge pathmre
  • 1075c38cW48 mission, logmre
  • 17bdd0d6V37/V39 missions, logmre
  • 146de5f8Re-vendor gitoria to Hybriel set-day39 (51e921d7)mre
  • e874e44dtests/status-keyed: app token lives 60 s so it outlives the gate's two restartsmre
  • 270b8d61deploy.sh: DEPLOY_STOP_START=1 stops, waits for the old pid, then starts (mpackdb freeze, replaces the standby swap)mre
  • 3f9235b8project.hl: drop the dummy /pulls/:n component route (hybriel#294 is fixed in day37)mre
  • c90daf19Re-vendor gitoria to Hybriel set-day37 (f6b3d45b)mre
  • 03b5bb08W39 report to reports/, drop scratch repro, mission + logmre
  • 154d333fMerge w39-create-api: POST /api/repos with a user token (#39)mre
  • 149dd512Rewrite W39 reportmre
  • e5385075Expect 401 for POST /api/repos without a tokenmre
  • 1a76055cDocument repository creation APImre