Fix deadlock in integration tests for Import-Export

This commit is contained in:
Michal Horejsek
2020-10-16 10:53:44 +02:00
parent 932928ddc8
commit 4893931a8d
2 changed files with 5 additions and 1 deletions

View File

@ -48,7 +48,10 @@ func TransferChecksFeatureContext(s *godog.Suite) {
func progressFinishedWith(wantResponse string) error {
progress := ctx.GetTransferProgress()
// Wait till transport is finished.
for range progress.GetUpdateChannel() {
updateCh := progress.GetUpdateChannel()
if updateCh != nil {
for range updateCh {
}
}
err := progress.GetFatalError()