github.com/niedbalski/juju@v0.0.0-20190215020005-8ff100488e47/doc/test-failure-FAQ.md (about) 1 Test Failure FAQ 2 ================ 3 4 This is an attempt to create a resource for weird test failures. 5 6 ### test times out 7 8 Almost certainly there is a deadlock in the code, or the test is actually 9 using time.Sleep for a long value. You need to fix the test. 10 11 12 ### debug-log handler error: tailer stopped: tailable cursor requested on non capped collection 13 14 Now that the logs are kept in mongo, the debug log code attempts to tail 15 the oplog to get the new logs. Most tests don't set up mongo in replicaset 16 mode, so no oplog collection is created. Most debug-log tests now mock out 17 the oplog with a capped collection for testing purposes. 18 19 If you hit this error, you need to either provide a mock oplog, or don't call 20 debug-log. 21