From 75ecc15958d30c33031d1196033776663900d693 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Mon, 19 Jun 2023 08:50:28 +0200 Subject: [PATCH] test: fix inspect and ls Signed-off-by: CrazyMax --- tests/inspect.go | 4 +++- tests/ls.go | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 } }