hazelcast / hazelcast-nodejs-client

Hazelcast Node.js Client
https://hazelcast.com/clients/node-js/
Apache License 2.0
150 stars 58 forks source link

Fix CompactSerializersLiveTest for backward compatibility tests #1494

Closed mdumandag closed 1 year ago

mdumandag commented 1 year ago

The foreach block on the test was binding to the defined XML configs before we run the logic to change them.

It turns out such a dynamic test generation is not possible with mocha. Test runs should be defined outside of the describe block.

To simplify this, I have parameterized the top level describe block with true and false, and selected the configuration based on that and the server version in the before block as before.