mirror of https://github.com/linkerd/linkerd2.git
Fix flakey Handles_overflow test (#12555)
The `Handles overflow` test for the endpoint profile translator writes updates into the updates queue until it is full and then tests that no more updates can be enqueued. However, since the test also starts the profile translator, it is concurrently draining updates off of the queue as well. This leads to unpredictable results and test flakeyness. We update the test to not start the translator so that updates are not drained off of the queue during the test. Signed-off-by: Alex Leong <alex@buoyant.io>
This commit is contained in:
parent
532364f98b
commit
d3e227fbd7
|
@ -89,8 +89,9 @@ func TestEndpointProfileTranslator(t *testing.T) {
|
|||
endStream,
|
||||
log,
|
||||
)
|
||||
translator.Start()
|
||||
defer translator.Stop()
|
||||
|
||||
// We avoid starting the translator so that it doesn't drain its update
|
||||
// queue and we can test the overflow behavior.
|
||||
|
||||
for i := 0; i < updateQueueCapacity/2; i++ {
|
||||
if err := translator.Update(podAddr); err != nil {
|
||||
|
|
Loading…
Reference in New Issue