De-duplicate this code & put it in a central location that can be imported.
ToDos:
x/ibc/testing/ pkg which sends through messages to create/update client, create connections/channels #6356cc @fedekunze
I think #5691 is a dupe of this issue. Going to repost that content here cc @AdityaSripal
Tests on IBC require some cleanup along with end-to-end tests. Individual tasks include:
Cleanup:
testing package within x/ibc with common test suite functionality could be useful).Testing improvements:
Followup from #5711:
03-connection and 04-channel so that they fail for the stated reason in the test-case nameconnectionID naming through testsuites in 03-connection and 04-channel. Connection IDs are consistent within tests, but not across the entire test-suite which is important for understandabilityTimeoutOnClose and CleanupPacket for ORDERED and UNORDERED channels03-connection and 04-channel and move to separate test-utils packagefrom my look at testing so far, one good first step is to move TestChain/KeeperSuiteTest to a x/ibc/testing package. I can take this on if no one has started
I have not started, feel free to take this @colin-axner 馃憤
Following the merge of #6400, since the testing package will have stabilized in API, I think it'd be useful to do a pr for each file being updated rather than by pkg (as this has proved to result in a mega test refactor pr)
I'm starting on connection tests, will begin with handshake, then verify, then keeper
closing this issue since I believe the gist of it has been addressed. Any other test code that needs work or has issues should be opened with its own issue