Skip to content

Buffer.buffer.transfer() hangs in tests #9612

@TomerAberbach

Description

@TomerAberbach

Describe the bug

Buffer.buffer.transfer() hangs in tests

Note that it doesn't hang in a normal Node script. It only hangs in vitest

Reproduction

  1. Clone https://github.com/TomerAberbach/vitest-transfer-bug
  2. Run pnpm i
  3. Run pnpm test

System Info

System:
    OS: macOS 14.6.1
    CPU: (10) arm64 Apple M1 Max
    Memory: 725.66 MB / 32.00 GB
    Shell: 4.0.8 - /opt/homebrew/bin/fish
  Binaries:
    Node: 24.8.0 - /opt/homebrew/bin/node
    Yarn: 1.22.22 - /opt/homebrew/bin/yarn
    npm: 11.6.0 - /opt/homebrew/bin/npm
    pnpm: 10.17.0 - /opt/homebrew/bin/pnpm
    bun: 1.2.22 - /opt/homebrew/bin/bun
  Browsers:
    Chrome: 144.0.7559.133
    Edge: 144.0.3719.115
    Firefox: 146.0.1
    Safari: 17.6
  npmPackages:
    vitest: ^4.0.18 => 4.0.18

Used Package Manager

pnpm

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions