Skip to content

Commit 644bb1e

Browse files
authored
Merge pull request #4950 from ariel-anieli/loop-range-integers
test: add missed use of for range over integers
2 parents 3a56046 + 34da991 commit 644bb1e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcontainer/seccomp/patchbpf/enosys_linux_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,8 @@ func TestEnosysStub_SingleArch(t *testing.T) {
299299
}
300300

301301
func TestEnosysStub_MultiArch(t *testing.T) {
302-
for end := 0; end < len(testArches); end++ {
303-
for start := 0; start < end; start++ {
302+
for end := range len(testArches) {
303+
for start := range end {
304304
var arches []string
305305
for _, arch := range testArches[start:end] {
306306
// "native" indicates a blank architecture field for seccomp, to test

0 commit comments

Comments
 (0)