diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-08-03 10:11:11 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-08-03 10:11:11 -0400 |
commit | ca2a95aaf3a1bd7aa1c67203143469ea4b17172d (patch) | |
tree | 45a246d38f2a957ab720a5106e2a33fbbc5655d0 | |
parent | 285e6e9e655122906a11b0065cad370652393312 (diff) | |
download | mongo-ca2a95aaf3a1bd7aa1c67203143469ea4b17172d.tar.gz |
fix test for v8
-rw-r--r-- | jstests/sharding/auto1.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/jstests/sharding/auto1.js b/jstests/sharding/auto1.js index 6c7c77b2ff8..346c43ad53f 100644 --- a/jstests/sharding/auto1.js +++ b/jstests/sharding/auto1.js @@ -53,7 +53,7 @@ counts.push( s.config.chunks.count() ); assert( counts[counts.length-1] > counts[0] , "counts 1 : " + tojson( counts ) ) sorted = counts.slice(0) -Array.sort( sorted ) +sorted.sort(); assert.eq( counts , sorted , "counts 2 : " + tojson( counts ) ) print( counts ) |