Skip to content

Commit a466833

Browse files
authored
Merge pull request #279 from Zyqsempai/267-remove-vda-assertion
Remove vda assertion
2 parents 1f55138 + a5030f0 commit a466833

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

runtime/service_integ_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -598,15 +598,14 @@ func TestStubBlockDevices_Isolated(t *testing.T) {
598598
}
599599

600600
const expectedOutput = `
601-
NAME MAJ:MIN RM SIZE RO | MAGIC
602-
vda 254:0 0 53641216B 0 | 104 115 113 115 128 28 0 0
603601
vdb 254:16 0 0B 0 |
604602
vdc 254:32 0 512B 0 | 214 244 216 245 215 177 177 177
605603
vdd 254:48 0 512B 0 | 214 244 216 245 215 177 177 177
606604
vde 254:64 0 512B 0 | 214 244 216 245 215 177 177 177
607605
vdf 254:80 0 512B 0 | 214 244 216 245 215 177 177 177`
608606

609-
require.Equal(t, strings.TrimSpace(expectedOutput), strings.TrimSpace(stdout.String()))
607+
parts := strings.Split(stdout.String(), "vdb")
608+
require.Equal(t, strings.TrimSpace(expectedOutput), strings.TrimSpace("vdb"+parts[1]))
610609
require.NoError(t, exitStatus.Error(), "failed to retrieve exitStatus")
611610
require.Equal(t, uint32(0), exitStatus.ExitCode())
612611
case <-ctx.Done():

0 commit comments

Comments
 (0)