Closed Sekhmet closed 1 month ago
tAck
I am on M1, but can not seem to reproduce the failing tests on master
I can't reproduce on master now either, maybe this wasn't addressed actually, maybe I will be able to debug it more if I see it happening again.
I'd get following error when trying to run tests for second time:
api-subgraph:test: Skipping download/install step because binary already exists at /Users/sekhmet/Workspace/sx/node_modules/binary-install-raw/bin/0.6.0
api-subgraph:test: Error: spawnSync /Users/sekhmet/Workspace/sx/node_modules/binary-install-raw/bin/0.6.0/binary-macos-12-m1 Unknown system error -88
api-subgraph:test: at Object.spawnSync (node:internal/child_process:1110:20)
api-subgraph:test: at spawnSync (node:child_process:871:24)
api-subgraph:test: at Binary.run (/Users/sekhmet/Workspace/sx/node_modules/binary-install-raw/index.js:111:20)
api-subgraph:test: at TestCommand.runBinary (/Users/sekhmet/Workspace/sx/node_modules/@graphprotocol/graph-cli/dist/commands/test.js:143:52) {
api-subgraph:test: errno: -88,
api-subgraph:test: code: 'Unknown system error -88',
api-subgraph:test: syscall: 'spawnSync /Users/sekhmet/Workspace/sx/node_modules/binary-install-raw/bin/0.6.0/binary-macos-12-m1',
api-subgraph:test: path: '/Users/sekhmet/Workspace/sx/node_modules/binary-install-raw/bin/0.6.0/binary-macos-12-m1',
api-subgraph:test: spawnargs: []
api-subgraph:test: }
Summary
This seems to fix issue with running matchstick-as tests multiple times. Before (at least on M1 mac) it would have failed if ran two times.
Test plan
yarn test --force
multiple times.