snowflakedb/snowflake-jdbc

Flakiness found in SnowflakeAzureClientTest.java

Closed this issue · 0 comments

The test of SnowflakeAzureClientTest.java were found flaky because of the ordering of HashMaps. The orders of elements in the HashMaps are not the same every time being called. In this case, HashMap is changed into LinkedHashMap. This code change is trying to fix the flaky tests mentioned above, because they sometimes fail (as the picture showed) and sometimes pass when comparing the strings. The failure could be reproduced by the commands above by using the tool of NonDex. The code change is to make sure the tests will always pass in this case.