Adding a sleep to translate test

it randomly fails to hit a single line for `Done` in tests, so I am adding a sleep here to see if waiting for a second will allow every routine to exit correctly before the test exists. It feels like a race condition.

Signed-off-by: quobix <dave@quobix.com>
This commit is contained in:
quobix
2024-02-21 08:19:00 -05:00
parent 40b16b3f76
commit 94c06b1507

View File

@@ -541,6 +541,7 @@ func TestTranslatePipeline(t *testing.T) {
case <-doneChan:
// test passed
}
time.Sleep(1 * time.Second)
})
})
}