aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGravatar Miek Gieben <miek@miek.nl> 2021-01-24 18:28:49 +0100
committerGravatar GitHub <noreply@github.com> 2021-01-24 17:28:49 +0000
commit38d4dacb887579b6e241b97e22f9066ac8c6f6d6 (patch)
treeb286d4e58b38d47d67a287872f9af88a629f3039 /test
parenteba74389c407cee059e7be707f463ae091bf2fd1 (diff)
downloadcoredns-38d4dacb887579b6e241b97e22f9066ac8c6f6d6.tar.gz
coredns-38d4dacb887579b6e241b97e22f9066ac8c6f6d6.tar.zst
coredns-38d4dacb887579b6e241b97e22f9066ac8c6f6d6.zip
Fix import ordering presubmit test (#4422)
Automatically submitted.
Diffstat (limited to 'test')
-rw-r--r--test/presubmit_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/presubmit_test.go b/test/presubmit_test.go
index 5d519d759..903661ba0 100644
--- a/test/presubmit_test.go
+++ b/test/presubmit_test.go
@@ -293,7 +293,7 @@ func (w *testImportOrderingWalker) walk(path string, info os.FileInfo, _ error)
// Ok, now that we have the type, let's see if all members adhere to it.
// After that we check if the are in the right order.
- for i := 0; i < bl; i++ {
+ for i := 0; i <= bl; i++ {
for _, p := range blocks[i] {
t := importtype(p.Path.Value)
if t != ip[i] {