diff options
author | Eliot Horowitz <eliot@10gen.com> | 2009-12-15 10:55:25 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2009-12-15 10:55:25 -0500 |
commit | 3231cd90b6f37154ab9402f79eb72f44df82c3ca (patch) | |
tree | ad50d2bccdf272f675f43a475395c77622d501a6 /jstests/capped1.js | |
parent | c6420d62e0748d5df85cc0499126c3e797c3f6cc (diff) | |
download | mongo-3231cd90b6f37154ab9402f79eb72f44df82c3ca.tar.gz |
test for SERVER-485 (capped + validate) that doesn't work yet (commented out)
Diffstat (limited to 'jstests/capped1.js')
-rw-r--r-- | jstests/capped1.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/jstests/capped1.js b/jstests/capped1.js new file mode 100644 index 00000000000..2e4fb866b9f --- /dev/null +++ b/jstests/capped1.js @@ -0,0 +1,11 @@ + +t = db.capped1; +t.drop(); + +db.createCollection("capped1" , {capped:true, size:1024 }); +v = t.validate(); +//assert( v.valid , "A : " + tojson( v ) ); // SERVER-485 + +t.save( { x : 1 } ) +assert( t.validate().valid , "B" ) + |