Tim Vahlbrock
08/26/2024, 7:22 AMTim Vahlbrock
08/26/2024, 7:29 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Tim Vahlbrock
08/26/2024, 8:55 AMTim Vahlbrock
08/26/2024, 8:56 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Tim Vahlbrock
08/26/2024, 10:57 AM2024-08-26T07:15:41.248673Z ERROR ThreadId(02) pact_models::file_utils: Could not acquire a shared lock on './the/place/where/the/pacts/go.json' after 3 attempts
2024-08-26T07:15:41.248801Z ERROR ThreadId(02) pact_ffi::mock_server::handles: unable to write the pact file: Could not acquire a shared lock on './the/place/where/the/pacts/go.json' after 3 attempts
[09:15:41.249] ERROR (525): The pact core was unable to write the pact file
[09:15:41.260] ERROR (525): pact-core@15.1.1: !!!!!!!!! PACT CRASHED !!!!!!!!!
The pact consumer core returned false at 'givenWithParams'. This
should only happen if the core methods were invoked out of order
This is almost certainly a bug in pact-js-core. It would be great if you could
open a bug report at: <https://github.com/pact-foundation/pact-js-core/issues>
so that we can fix it.
There is additional debugging information above. If you open a bug report,
please rerun with logLevel: 'debug' set in the VerifierOptions, and include the
full output.
SECURITY WARNING: Before including your log in the issue tracker, make sure you
have removed sensitive info such as login credentials and urls that you don't want
to share with the world.
We're sorry about this!Matt (pactflow.io / pact-js / pact-go)
Tim Vahlbrock
08/27/2024, 6:11 AMTim Vahlbrock
08/27/2024, 6:20 AMdescribePact that basically acts like the describe in most js test frameworks, but it additionally injects an instance of the pact object into the suite. I could move the creation of this object into describePact, but then I would still have one object per suite, not per test. I don't know whether this is the problem, but I could create an alternative to the it function instead, so each case would receive its own pact object.Tim Vahlbrock
08/27/2024, 6:30 AM--no-file-parallelism, which seems to solve the problem with the creation of deviating contracts for now. I also added --no-isolate as my contract tests are stateless and the contract tests are now even faster than before.