@@ -850,8 +850,8 @@ func TestMountCgroupRO(t *testing.T) {
850850 buffers := runContainerOk (t , config , "mount" )
851851
852852 mountInfo := buffers .Stdout .String ()
853- lines := strings .Split (mountInfo , "\n " )
854- for _ , l := range lines {
853+ lines := strings .SplitSeq (mountInfo , "\n " )
854+ for l := range lines {
855855 if strings .HasPrefix (l , "tmpfs on /sys/fs/cgroup" ) {
856856 if ! strings .Contains (l , "ro" ) ||
857857 ! strings .Contains (l , "nosuid" ) ||
@@ -892,8 +892,8 @@ func TestMountCgroupRW(t *testing.T) {
892892 buffers := runContainerOk (t , config , "mount" )
893893
894894 mountInfo := buffers .Stdout .String ()
895- lines := strings .Split (mountInfo , "\n " )
896- for _ , l := range lines {
895+ lines := strings .SplitSeq (mountInfo , "\n " )
896+ for l := range lines {
897897 if strings .HasPrefix (l , "tmpfs on /sys/fs/cgroup" ) {
898898 if ! strings .Contains (l , "rw" ) ||
899899 ! strings .Contains (l , "nosuid" ) ||
@@ -1206,8 +1206,8 @@ func TestRootfsPropagationSlaveMount(t *testing.T) {
12061206 dir2cont = filepath .Join (dir1cont , filepath .Base (dir2host ))
12071207
12081208 propagationInfo := stdout2 .String ()
1209- lines := strings .Split (propagationInfo , "\n " )
1210- for _ , l := range lines {
1209+ lines := strings .SplitSeq (propagationInfo , "\n " )
1210+ for l := range lines {
12111211 linefields := strings .Split (l , " " )
12121212 if len (linefields ) < 5 {
12131213 continue
0 commit comments