You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some flaky-tests in the repo, which assert the output of non-deterministic outputs. They may pass in specific environment but possible fail in others. By using nondex, one can find such cases.
For example: ConsumerJsonRecordTest.should_serialize_a_record_with_headers fails intermittently
Expected: "{\"key\":123,\"value\":\"val\",\"headers\":{\"hKey\":\"hValue\",\"hKeyWithNullValue\":null}}"
but: was "{\"key\":123,\"value\":\"val\",\"headers\":{\"hKeyWithNullValue\":null,\"hKey\":\"hValue\"}}"
Notice the string mismatch due to change in ordering of keys: {hKey, hKeyWithNullValue} <=> {hKeyWithNullValue, hKey}
The Problem:
There are some flaky-tests in the repo, which assert the output of non-deterministic outputs. They may pass in specific environment but possible fail in others. By using nondex, one can find such cases.
For example: ConsumerJsonRecordTest.should_serialize_a_record_with_headers fails intermittently
Notice the string mismatch due to change in ordering of keys:
{hKey, hKeyWithNullValue}
<=>{hKeyWithNullValue, hKey}
About The Fix:
Answered here.
The text was updated successfully, but these errors were encountered: