mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-09 20:47:44 +00:00
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:
@@ -541,6 +541,7 @@ func TestTranslatePipeline(t *testing.T) {
|
||||
case <-doneChan:
|
||||
// test passed
|
||||
}
|
||||
time.Sleep(1 * time.Second)
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user