diff --git a/tests/inspect.go b/tests/inspect.go index 207d495e..9bfb5e4d 100644 --- a/tests/inspect.go +++ b/tests/inspect.go @@ -33,6 +33,8 @@ func testInspect(t *testing.T, sb integration.Sandbox) { driver = strings.TrimSpace(v) } } + require.Equal(t, sb.Address(), name) - require.Equal(t, sb.Name(), driver) + sbDriver, _, _ := strings.Cut(sb.Name(), "+") + require.Equal(t, sbDriver, driver) } diff --git a/tests/ls.go b/tests/ls.go index a072d2af..a45b2675 100644 --- a/tests/ls.go +++ b/tests/ls.go @@ -23,9 +23,10 @@ func testLs(t *testing.T, sb integration.Sandbox) { out, err := lsCmd(sb) require.NoError(t, err, string(out)) + sbDriver, _, _ := strings.Cut(sb.Name(), "+") for _, line := range strings.Split(out, "\n") { if strings.Contains(line, sb.Address()) { - require.Contains(t, line, sb.Name()) + require.Contains(t, line, sbDriver) return } }