Skip to content

Commit

Permalink
e2e: fix PFCP connection failure handling
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan4th committed Nov 4, 2021
1 parent 7e241d4 commit c08af9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/e2e/pfcp/pfcp.go
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,8 @@ func (pc *PFCPConnection) Start(ctx context.Context) error {
// broken in PFCPConnection code
tch := time.After(pc.cfg.RequestTimeout * (maxRequestAttempts + 3))
select {
case <-pc.t.Dead():
return pc.t.Wait()
case r := <-pc.startCh:
close(pc.startCh)
return r.err
Expand Down

0 comments on commit c08af9c

Please # to comment.