Skip to content

Commit bb416a6

Browse files
committed
Re-add sleep of 2 sec before looking for partitions
This fixes issue solo-io#162 and solo-io#165. I refactored the timeout handling, with solo-io#169 by increasing the existing timeout and removing the additional 2 sec sleep, because the 2 sec sleep was not working in all cases. Unfortunately, the increase alone is not sufficient, so I'm re-adding the 2 sec sleep again.
1 parent 61676eb commit bb416a6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/builder/step_map_image.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func (s *stepMapImage) Run(_ context.Context, state multistep.StateBag) multiste
4848
loop := strings.Split(path, "/")[2]
4949
prefix := loop + "p"
5050

51+
time.Sleep(2 * time.Second)
5152
// Look for all partitions of created loopback
5253
var partitions []string
5354
cPartitions := make(chan []string)

0 commit comments

Comments
 (0)