Skip to content

Commit 6b20072

Browse files
committed
improve partition unit test
1 parent e38ef72 commit 6b20072

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/linkcache/cache_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ func TestListAndUpdate(t *testing.T) {
8383
m.MapFS[gcpPersistentDiskPartitionID] = &fstest.MapFile{}
8484
m.MapFS[gcpPersistentDiskID] = &fstest.MapFile{}
8585
m.symlinks[gcpPersistentDiskID] = devicePathSDA
86+
m.symlinks[gcpPersistentDiskPartitionID] = devicePathSDA + "1"
8687
},
8788
expectedLinks: map[string]string{
8889
gcpPersistentDiskID: devicePathSDA,

0 commit comments

Comments
 (0)