• exec/tests/webmail/api.js

    From Rob Swindell (on Debian Linux)@VERT to Git commit to main/sbbs/master on Fri Nov 20 15:25:23 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/1026573c9a66068d1334dff7
    Modified Files:
    exec/tests/webmail/api.js
    Log Message:
    tests/webmail/api.js: forge a session key that really differs

    The "forged cookie values" case built its forged key by replacing the
    first character of a real session key with "f". The key is random hex,
    so one time in sixteen it already began with "f": the "forged" cookie
    was then the valid one, the server rightly accepted it, and the test
    failed with "forged values: not signed in".

    Use "e" when the key begins with "f", and assert that the forged key
    differs from the real one.

    The test now passed 48 runs in a row; before, it failed about one run
    in sixteen.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Rob Swindell (on Windows 11)@VERT to Git commit to main/sbbs/master on Sun Nov 22 01:45:53 2026
    https://gitlab.synchro.net/main/sbbs/-/commit/afa9dc33f55a080997839bc7
    Modified Files:
    exec/tests/webmail/api.js
    Log Message:
    WebMail tests: capture the expected locale error in api.js

    The "no locale files at all" case points the config at a directory
    with no en_us.ini, and locale.js logs "webmail: cannot read ..." at
    error level for each of the test's two calls, which printed two error
    lines in every test run.

    Capture Api.Locale.error around that block, as tests/webmail/locale.js
    does, and assert that both failures were logged and name the file.

    Introduced in c37c7b02f5.

    Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net