question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

  • latest flow-router-extra package version (3.6.0)
  • latest meteor (1.8.0.1)

When trying to launch tests with:

meteor test-packages ./

End up looking at this exception:

$ meteor test-packages ./
[[[[[ Tests ]]]]]                             

=> Started proxy.                             
=> Started MongoDB.                           
W20181209-03:32:31.507(2)? (STDERR) /Users/user/.meteor/packages/promise/.0.11.2.17jdcpl.glsd++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/meteor-promise/promise_server.js:218
W20181209-03:32:31.547(2)? (STDERR)       throw error;
W20181209-03:32:31.548(2)? (STDERR)       ^
W20181209-03:32:31.548(2)? (STDERR) 
W20181209-03:32:31.548(2)? (STDERR) Error: key $clusterTime must not start with '$'
W20181209-03:32:31.548(2)? (STDERR)     at Query.toBin (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb-core/lib/connection/commands.js:146:25)
W20181209-03:32:31.549(2)? (STDERR)     at serializeCommands (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb-core/lib/connection/pool.js:1045:43)
W20181209-03:32:31.549(2)? (STDERR)     at Pool.write (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb-core/lib/connection/pool.js:1261:3)
W20181209-03:32:31.549(2)? (STDERR)     at executeWrite (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:147:10)
W20181209-03:32:31.549(2)? (STDERR)     at WireProtocol.insert (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb-core/lib/wireprotocol/3_2_support.js:158:3)
W20181209-03:32:31.549(2)? (STDERR)     at Server.insert (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb-core/lib/topologies/server.js:815:35)
W20181209-03:32:31.550(2)? (STDERR)     at Server.insert (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/topologies/topology_base.js:321:25)
W20181209-03:32:31.550(2)? (STDERR)     at OrderedBulkOperation.finalOptionsHandler (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/bulk/common.js:1003:25)
W20181209-03:32:31.550(2)? (STDERR)     at executeCommands (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/bulk/ordered.js:165:17)
W20181209-03:32:31.550(2)? (STDERR)     at executeOperation (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/utils.js:420:24)
W20181209-03:32:31.550(2)? (STDERR)     at OrderedBulkOperation.execute (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/bulk/ordered.js:121:12)
W20181209-03:32:31.551(2)? (STDERR)     at bulkWrite (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/operations/collection_ops.js:115:8)
W20181209-03:32:31.551(2)? (STDERR)     at executeOperation (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/utils.js:420:24)
W20181209-03:32:31.551(2)? (STDERR)     at Collection.insertMany (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/collection.js:528:10)
W20181209-03:32:31.551(2)? (STDERR)     at Collection.insert (/Users/user/.meteor/packages/npm-mongo/.3.1.1.1pjom2b.ao8o++os+web.browser+web.browser.legacy+web.cordova/npm/node_modules/mongodb/lib/collection.js:675:15)
W20181209-03:32:31.551(2)? (STDERR)     at MongoConnection._insert (packages/mongo/mongo_driver.js:373:16)

mb related: https://github.com/VeliovGroup/Meteor-Files-Demos/issues/13

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dr-dimitrucommented, Jan 19, 2019

@coagmano looks like local mongodb error. Running tests on dedicated mongodb instance solve this issue.

MongoDB start script:

mongod --config ./conf.conf --fork

./conf.conf:

storage:
  dbPath: /mongodb
  journal:
    enabled: true
  engine: wiredTiger
systemLog:
  verbosity: 0
  traceAllExceptions: false
  destination: file
  quiet: true
  path: /mongod.log
net:
  port: 27017
  bindIp: 127.0.0.1
  unixDomainSocket:
    enabled: true
    filePermissions: 0777
operationProfiling:
  slowOpThresholdMs: 2100
  mode: off

My case test script:

MONGO_URL="mongodb://127.0.0.1:27017/testsmeteor4" ROOT_URL="http://127.0.0.1:3003" meteor test-packages ./ --port 3003
0reactions
dr-dimitrucommented, Dec 15, 2018

Spoke too soon.

Tests are failing unless I remove this line and this line excluding all fast-render tests.

@coagmano any ideas?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tests not running in Test Explorer - visual studio
In my case it's the exact opposite: Any unit test project, that has the MSTest nuget packages will not run, where as the...
Read more >
Can't run or debug unit tests - Visual Studio Feedback
I'm using Visual Studio Community Edition 15.8.1 and I can't run or debug any unit tests. Every time I'm trying to run the...
Read more >
Cannot run Unit Tests | Apple Developer Forums
1. Open project in Xcode which has unit tests · 2. Open the Test navigator · 3. Click a run button to run...
Read more >
Cant Run Tests on Rider 2021.1.X · Issue #76 - GitHub
Rider currently cannot run SpecFlow+Runner tests.
Read more >
Run unit tests with Test Explorer - Visual Studio (Windows)
To run your unit tests after each local build, open the settings icon in the Test Explorer toolbar and select Run Tests After...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found