summaryrefslogtreecommitdiff
path: root/jstests/capped1.js
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2009-12-15 10:55:25 -0500
committerEliot Horowitz <eliot@10gen.com>2009-12-15 10:55:25 -0500
commit3231cd90b6f37154ab9402f79eb72f44df82c3ca (patch)
treead50d2bccdf272f675f43a475395c77622d501a6 /jstests/capped1.js
parentc6420d62e0748d5df85cc0499126c3e797c3f6cc (diff)
downloadmongo-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.js11
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" )
+