diff --git a/test_elasticsearch/test_server/test_common.py b/test_elasticsearch/test_server/test_common.py
index <HASH>..<HASH> 100644
--- a/test_elasticsearch/test_server/test_common.py
+++ b/test_elasticsearch/test_server/test_common.py
@@ -72,7 +72,7 @@ class YamlTestCase(ElasticsearchTestCase):
                 continue
             step = step.replace('\1', '.')
             step = self._resolve(step)
-            if step.isdigit():
+            if step.isdigit() and step not in value:
                 step = int(step)
                 self.assertIsInstance(value, list)
                 self.assertGreater(len(value), step)
Sometimes we have dicts indexed by integers in yaml tests