allora-network / allora-chain

Node software to run the Allora Network
https://www.allora.network/
Apache License 2.0
73 stars 67 forks source link

Functions create their own context.Ctx to call cosmosclient.Client #404

Closed relyt29 closed 2 months ago

relyt29 commented 2 months ago

Remove global shared context from TestConfig struct

Every place in the test suite where m.Ctx was called, instead just call context.Background and create a new separate context object.

Not actually sure this works, just a test PR to test the idea

relyt29 commented 2 months ago

I'm going to flip this to ready for review, it seems to work as far as I can tell. See https://linear.app/upshot/issue/ORA-1765/improve-stress-tests-properly-use-goroutines for motivation