-
Notifications
You must be signed in to change notification settings - Fork 23
Description
Instruction 16 (17 if PRs merged), “Add some test users”, crashes. There appear to be multiple possible causes:
(1) test/generateUsers line 7 seems to reference './db' when it should reference '../db'.
(2) Running the command after correcting './db' produces one of two errors, depending on conditions that I have been unable so far to replicate:
(a) In one condition it produces a “ValidationError: Value for [roles][0] must be a string or null”, although debugging shows that roles[0] has a string value on line 52 of test/generateUsers. UnhandledPromiseRejectionWarning is also issued.
(b) In another condition it produces an UnhandledPromiseRejectionWarning, “TypeError: (0 , _db.drainPool) is not a function”. In fact, line 7 of test/GenerateUsers.js imports drainPool from ./db (../db?), and tries to invoke it on line 63, but “drainPool”, “drain”, and “pool” (all case-insensitive) appear in the entire project ONLY in these two locations in this file. rethinkDBDash provides for draining the connection pool, but with a drain() method, not a drainPool function (https://github.com/neumino/rethinkdbdash).