Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test for batched http target requests
Adapted existing tests to suit implementation of batching tests without implementing the same/similar test logic again. This adapts things to rely on acks to manage the waitgroup as opposed to the test server. Originally it was constructed that way because the test also tests the acking, so if that was broken the test might hang and it wouldn't be obvious that acking was responsible. Got around that issue by adding a timeout to wait for the waitgroup. So now, if it doesn't ack enough, that timeout will occur, and if it acks too many times waitgroup will panic (which was the case already). We could just as easily preserve the old behaviour and simply add a new test for this, if things are getting too complex here.
- Loading branch information