Open Connoropolous opened 2 years ago
That GraphQL request does run more mutations in parallel than possibly anywhere else in the tests. It could be a race-conditiony type thing where potentially something is happening too quickly, I've seen that before in older Holochain versions, from memory it was manifesting as a query starting on a cell before the DNA had finished installing. But this seems different- all those zomes have been hit by a request at this point in the test.
Double-checking the presence of calls to await s.consistency()
is also a thing worth investigating, but unlikely. And if you're in doubt about certain calls you can import waitForInput
from init.js
and use it with await
in order to manually pause tests and allow backing services to settle.
This is specifically on Macos from what we can tell, for an unknown reason
Run
WASM_LOG=debug RUST_LOG="debug,wasmer_compiler_cranelift=error,holochain::core::workflow=error," RUST_BACKTRACE=1 GRAPHQL_DEBUG=1 npx tape --ignore .skip_tests flows/flow_records_graphql.js
and get:
The related lines of code: https://github.com/h-REA/hREA/blob/c3ba5a4aa474cc2f8e8973e7655f647226d2c164/test/flows/flow_records_graphql.js#L353 and https://github.com/h-REA/hREA/blob/c3ba5a4aa474cc2f8e8973e7655f647226d2c164/test/flows/flow_records_graphql.js#L302-L314