Looks like the majority of them are network connections, so something is leaking those. I'm looking into it.
@anikeev-yadro can you share the exact k6 command you used?
Actually, I apologize. I had this call in an earlier version but in current form ofc it's not necessary. I removed it.
Since this file is initialize_test.go
and it tests initialization, I don't think this function should be calling test assertions since it's just a helper. This function marks it as such, so that…
it's not unrelated. A new constant was added and this one was moved into a const block, so the comment needs to be nested as well since it refers to the specific constant and not to the whole block.
Disregarding the usage of TryLock
which is usually a smell, I find the code really difficult to read and reason about. For example, I would be afraid of changing anything :) I'm not sure if some…