1. Dariusz Luksza
  2. fantomongo


Dariusz Luksza  committed f10bcdf

Fix GridFSTest on fantom 1.0.61

  • Participants
  • Parent commits 483f6d1
  • Branches default

Comments (0)

Files changed (1)

File test/GridFSTest.fan

View file
     verifyEq(0, gfs.fileList.count, "gridfs isn't empty starting test")
     f := gfs.createFile("tester1")
     data := "allo there"
-    f.save(data.in)
+    f.save(data.toBuf.in)
     verifyEq(f.size, data.size)
     // verify(f.isValid) 
       throw Err("please update fantomongo/test/GridFSTest.testBasic() with a large file that exists on your machine")
     verify(bigfile.size > GridFS.DEFAULT_CHUNK_SIZE, "must be large enough to test multiple chunks")
+    verify(bigfile.mimeType != null, "mime type cannot be null")
     f2 := gfs.createFile("bigfiletest", bigfile.mimeType)
     verifyEq(bigfile.size, f2.size)