From 034c3e41fe3d0c87b960f2518532a0b59432d51c Mon Sep 17 00:00:00 2001 From: folex <0xdxdy@gmail.com> Date: Mon, 30 Mar 2020 15:04:12 +0300 Subject: [PATCH] Fix typo in test --- protocols/kad/src/kbucket/weighted.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/kad/src/kbucket/weighted.rs b/protocols/kad/src/kbucket/weighted.rs index 7e91c0f5..9c4f3dd5 100644 --- a/protocols/kad/src/kbucket/weighted.rs +++ b/protocols/kad/src/kbucket/weighted.rs @@ -475,7 +475,7 @@ mod tests { // Checking the same thing 3 times, why not? It's better to перебдеть. assert_eq!(expected.len(), bucket_nodes.len()); - for i in 1..expected.len() { + for i in 0..expected.len() { assert_eq!(expected[i], bucket_nodes[i], "\n\nposition {}", i); }