Skip to content

Commit d8b0fa4

Browse files
committed
attempt to fix race condition with vsock creation
Signed-off-by: Jerome Gravel-Niquet <[email protected]>
1 parent a22790d commit d8b0fa4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

machine_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,10 +561,11 @@ func testAttachSecondaryDrive(ctx context.Context, t *testing.T, m *Machine) {
561561
}
562562

563563
func testAttachVsock(ctx context.Context, t *testing.T, m *Machine) {
564+
timestamp := strconv.Itoa(int(time.Now().UnixNano()))
564565
dev := VsockDevice{
565566
ID: "1",
566567
CID: 3,
567-
Path: "foo",
568+
Path: timestamp + ".vsock",
568569
}
569570
err := m.addVsock(ctx, dev)
570571
if err != nil {

0 commit comments

Comments
 (0)