Build test failed after merging branch with upstream/master branch

Environment

Platform: Desktop
OS: Ubuntu 19.04

  • Before merging upstream branch build tests were running fine and now I just merged my master branch with upstream/master branch and tried running npm test and I got this errors:
zkesarani@zkesarani-VB:~/Dev/joplin/CliClient$ npm test

> joplin@1.0.163 test /home/zkesarani/Dev/joplin/CliClient
> gulp buildTests -L && jasmine --config=tests/support/jasmine.json

Testing with sync target: memory
Randomized with seed 45363
Started
...............14:12:22 Error: Error: SQLITE_ERROR: no such column: items.type_: 
                                SELECT items.`id`,items.`parent_id`,items.`title`,items.`body`,items.`created_time`,items.`updated_time`,items.`is_conflict`,items.`latitude`,items.`longitude`,items.`altitude`,items.`author`,items.`source_url`,items.`is_todo`,items.`todo_due`,items.`todo_completed`,items.`source`,items.`source_application`,items.`application_data`,items.`order`,items.`user_created_time`,items.`user_updated_time`,items.`encryption_cipher_text`,items.`encryption_applied`,items.`markup_language`,items.`is_shared`,items.`type_`,items.`type_`,items.`type_`
                                FROM `notes` items
                                WHERE id NOT IN (
                                        SELECT item_id FROM sync_items WHERE sync_target = 1
                                )
                                AND is_conflict = 0 AND encryption_applied = 0
                                ORDER BY items.updated_time DESC
                                LIMIT 100
                        : 
    at DatabaseDriverNode.sqliteErrorToJsError (/home/zkesarani/Dev/joplin/CliClient/tests-build/lib/database-driver-node.js:21:18)
    at JoplinDatabase.sqliteErrorToJsError (/home/zkesarani/Dev/joplin/CliClient/tests-build/lib/database.js:22:24)
    at JoplinDatabase.tryCall (/home/zkesarani/Dev/joplin/CliClient/tests-build/lib/database.js:90:17)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  code: 'SQLITE_ERROR'
}
14:12:22 There was some errors:
14:12:22 Error: Error: SQLITE_ERROR: no such column: items.type_: 
                                SELECT items.`id`,items.`parent_id`,items.`title`,items.`body`,items.`created_time`,items.`updated_time`,items.`is_conflict`,items.`latitude`,items.`longitude`,items.`altitude`,items.`author`,items.`source_url`,items.`is_todo`,items.`todo_due`,items.`todo_completed`,items.`source`,items.`source_application`,items.`application_data`,items.`order`,items.`user_created_time`,items.`user_updated_time`,items.`encryption_cipher_text`,items.`encryption_applied`,items.`markup_language`,items.`is_shared`,items.`type_`,items.`type_`,items.`type_`
                                FROM `notes` items
                                WHERE id NOT IN (
                                        SELECT item_id FROM sync_items WHERE sync_target = 1
                                )
                                AND is_conflict = 0 AND encryption_applied = 0
                                ORDER BY items.updated_time DESC
                                LIMIT 100
                        : 
    at DatabaseDriverNode.sqliteErrorToJsError (/home/zkesarani/Dev/joplin/CliClient/tests-build/lib/database-driver-node.js:21:18)
    at JoplinDatabase.sqliteErrorToJsError (/home/zkesarani/Dev/joplin/CliClient/tests-build/lib/database.js:22:24)
    at JoplinDatabase.tryCall (/home/zkesarani/Dev/joplin/CliClient/tests-build/lib/database.js:90:17)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  code: 'SQLITE_ERROR'
}
Error: No encryptable item on sync target
    at allSyncTargetItemsEncrypted (/home/zkesarani/Dev/joplin/CliClient/tests-build/test-utils.js:419:25)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at async /home/zkesarani/Dev/joplin/CliClient/tests-build/services_ResourceService.js:177:10
    at async UserContext.<anonymous> (/home/zkesarani/Dev/joplin/CliClient/tests-build/test-utils.js:380:4)
F.......................................................................................................

Failures:
1) synchronizer should not download resources over the limit
  Message:
    Expected 0 to be 2.
  Stack:
    Error: Expected 0 to be 2.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:1323:28
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

2) synchronizer should not consider it is a conflict if neither the title nor body of the note have changed
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

3) synchronizer should encryt resources
  Message:
    Unhandled promise rejection: Error: Resource ID not provided
  Stack:
    Error: Resource ID not provided
        at Function.byResourceId (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/models/ResourceLocalState.js:14:26)
        at Function.localState (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/models/Resource.js:222:29)
        at ResourceFetcher.startDownload_ (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/services/ResourceFetcher.js:123:37)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

4) synchronizer should skip items that cannot be synced
  Message:
    Expected 0 to be 1.
  Stack:
    Error: Expected 0 to be 1.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:712:24
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

5) synchronizer should decrypt the resource metadata, but not try to decrypt the file, if it is not present
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

6) synchronizer should not upload any item if encryption was enabled, and items have not been decrypted, and then encryption disabled
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:1025:47
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

7) synchronizer should allow duplicate folder titles
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

8) synchronizer should always handle conflict if local or remote are encrypted
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

9) synchronizer should resolve conflict if remote folder has been deleted, but note has been added to folder locally
  Message:
    Expected 2 to be 1.
  Stack:
    Error: Expected 2 to be 1.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:362:24
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

10) synchronizer should delete resources
  Message:
    Expected 0 to be 1.
  Stack:
    Error: Expected 0 to be 1.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:947:31
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

11) synchronizer should not wipe out user data when syncing with an empty target
  Message:
    Expected 10 to be 0.
  Stack:
    Error: Expected 10 to be 0.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:1496:37
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

12) synchronizer should delete remote notes
  Message:
    Expected 0 to be 1.
  Stack:
    Error: Expected 0 to be 1.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:258:26
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

13) synchronizer should handle conflict when remote note is deleted then local note is modified
  Message:
    Expected 0 to be 1.
  Stack:
    Error: Expected 0 to be 1.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:452:34
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

14) synchronizer should set the resource file size after decryption
  Message:
    Unhandled promise rejection: Error: Resource ID not provided
  Stack:
    Error: Resource ID not provided
        at Function.byResourceId (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/models/ResourceLocalState.js:14:26)
        at Function.localState (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/models/Resource.js:222:29)
        at ResourceFetcher.startDownload_ (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/services/ResourceFetcher.js:123:37)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

15) synchronizer should encrypt remote resources after encryption has been enabled
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

16) synchronizer should resolve folders conflicts
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

17) synchronizer should upload decrypted items to sync target after encryption disabled
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

18) synchronizer should resolve conflict if note has been deleted remotely and locally
  Message:
    Expected 1 to be 0.
  Stack:
    Error: Expected 1 to be 0.
        at <Jasmine>
        at localNotesFoldersSameAsRemote (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:66:25)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
  Message:
    Expected Error to be null. Tip: To check for deep equality, use .toEqual() instead of .toBe().
  Stack:
    Error: Expected Error to be null. Tip: To check for deep equality, use .toEqual() instead of .toBe().
        at <Jasmine>
        at localNotesFoldersSameAsRemote (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:85:16)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

19) synchronizer should sync resources
  Message:
    Expected 0 to be 3.
  Stack:
    Error: Expected 0 to be 3.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:857:56
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

20) synchronizer should not upload a resource if it has not been fetched yet
  Message:
    Expected 0 to be 1.
  Stack:
    Error: Expected 0 to be 1.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:1352:44
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

21) synchronizer should delete local folder
  Message:
    Expected 2 to be 0.
  Stack:
    Error: Expected 2 to be 0.
        at <Jasmine>
        at localNotesFoldersSameAsRemote (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:66:25)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
  Message:
    Expected Error to be null. Tip: To check for deep equality, use .toEqual() instead of .toBe().
  Stack:
    Error: Expected Error to be null. Tip: To check for deep equality, use .toEqual() instead of .toBe().
        at <Jasmine>
        at localNotesFoldersSameAsRemote (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:85:16)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

22) synchronizer items should be downloaded again when user cancels in the middle of delta operation
  Message:
    Expected 0 to be 1.
  Stack:
    Error: Expected 0 to be 1.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:692:24
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:380:4)

23) synchronizer should create remote items
  Message:
    Expected 2 to be 0.
  Stack:
    Error: Expected 2 to be 0.
        at <Jasmine>
        at localNotesFoldersSameAsRemote (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:66:25)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:111:3
  Message:
    Expected Error to be null. Tip: To check for deep equality, use .toEqual() instead of .toBe().
  Stack:
    Error: Expected Error to be null. Tip: To check for deep equality, use .toEqual() instead of .toBe().
        at <Jasmine>
        at localNotesFoldersSameAsRemote (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:85:16)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:111:3

24) synchronizer should update remote items
  Message:
    Expected 2 to be 0.
  Stack:
    Error: Expected 2 to be 0.
        at <Jasmine>
        at localNotesFoldersSameAsRemote (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:66:25)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:124:3
  Message:
    Expected Error to be null. Tip: To check for deep equality, use .toEqual() instead of .toBe().
  Stack:
    Error: Expected Error to be null. Tip: To check for deep equality, use .toEqual() instead of .toBe().
        at <Jasmine>
        at localNotesFoldersSameAsRemote (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:85:16)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:124:3

25) synchronizer should not save revisions when deleting a note via sync
  Message:
    Expected 0 to be 1.
  Stack:
    Error: Expected 0 to be 1.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:1218:27
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:380:4)

26) synchronizer should set the resource file size if it is missing
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

27) synchronizer should cross delete all folders
  Message:
    Expected 1 to be 0.
  Stack:
    Error: Expected 1 to be 0.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:424:25
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:380:4)

28) synchronizer should create a new Welcome notebook on each client
  Message:
    Expected 1 to be 2.
  Stack:
    Error: Expected 1 to be 2.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:1163:28
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:380:4)

29) synchronizer should delete local notes
  Message:
    Expected 3 to be 2.
  Stack:
    Error: Expected 3 to be 2.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:303:24
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:380:4)

30) synchronizer should not sync notes with conflicts
  Message:
    Expected 0 to be 1.
  Stack:
    Error: Expected 0 to be 1.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:592:26
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:380:4)

31) synchronizer should not encrypt notes that are shared
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

32) synchronizer should encrypt existing notes too when enabling E2EE
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

33) synchronizer should clear a lock if it was created by the same app as the current one
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

34) synchronizer should handle resource download errors
  Message:
    Unhandled promise rejection: Error: Resource ID not provided
  Stack:
    Error: Resource ID not provided
        at Function.byResourceId (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/models/ResourceLocalState.js:14:26)
        at Function.localState (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/models/Resource.js:222:29)
        at ResourceFetcher.startDownload_ (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/services/ResourceFetcher.js:123:37)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

35) synchronizer should create remote items with UTF-8 content
  Message:
    Expected 2 to be 0.
  Stack:
    Error: Expected 2 to be 0.
        at <Jasmine>
        at localNotesFoldersSameAsRemote (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:66:25)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:1116:3
  Message:
    Expected Error to be null. Tip: To check for deep equality, use .toEqual() instead of .toBe().
  Stack:
    Error: Expected Error to be null. Tip: To check for deep equality, use .toEqual() instead of .toBe().
        at <Jasmine>
        at localNotesFoldersSameAsRemote (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:85:16)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:1116:3

36) synchronizer should not save revisions when an item_change has been generated as a result of a sync
  Message:
    Unhandled promise rejection: Error: No such note: cef6fd938447461183961ecf91b45e7c
  Stack:
    Error: No such note: cef6fd938447461183961ecf91b45e7c
        at Function.noteIsOlderThan (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/models/Note.js:563:17)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async RevisionService.isOldNote (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/services/RevisionService.js:41:17)

37) synchronizer should stop trying to decrypt item after a few attempts
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at runNextTicks (internal/process/task_queues.js:62:5)
        at listOnTimeout (internal/timers.js:518:9)

38) synchronizer should resolve note conflicts
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

39) synchronizer should sync encrypted tags
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

40) synchronizer should handle case when new rev is created on client, then older rev arrives later via sync
  Message:
    Unhandled promise rejection: Error: No such note: 8a7f5c4b67ec464e970b91b9c4bad574
  Stack:
    Error: No such note: 8a7f5c4b67ec464e970b91b9c4bad574
        at Function.noteIsOlderThan (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/models/Note.js:563:17)
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async RevisionService.isOldNote (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/services/RevisionService.js:41:17)

41) synchronizer should update local items
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)

42) synchronizer should handle conflict when remote folder is deleted then local folder is renamed
  Message:
    Expected 3 to be 1.
  Stack:
    Error: Expected 3 to be 1.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:487:24
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

43) synchronizer should not save revisions when updating a note via sync
  Message:
    Unhandled promise rejection: Error: No such note: 0f7cced130c844e1a390b4b4759a5280
  Stack:
    Error: No such note: 0f7cced130c844e1a390b4b4759a5280
        at Function.noteIsOlderThan (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/models/Note.js:563:17)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)
        at async RevisionService.isOldNote (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/lib/services/RevisionService.js:41:17)

44) synchronizer should not try to delete on remote conflicted notes that have been deleted
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at runNextTicks (internal/process/task_queues.js:62:5)
        at listOnTimeout (internal/timers.js:518:9)

45) synchronizer notes and folders should get encrypted when encryption is enabled
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

46) synchronizer should update remote items but not pull remote changes
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

47) synchronizer should sync tags
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at <Jasmine>
        at shoudSyncTagTest (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:547:23)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

48) synchronizer should enable encryption automatically when downloading new master key (and none was previously available)
  Message:
    Expected false to be true.
  Stack:
    Error: Expected false to be true.
        at <Jasmine>
        at /home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/synchronizer.js:775:47
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

49) services_ResourceService should not delete resources that are associated with an encrypted note
  Message:
    Expected 0 to be 1, 'Test has thrown an exception - see above error'.
  Stack:
    Error: Expected 0 to be 1, 'Test has thrown an exception - see above error'.
        at <Jasmine>
        at UserContext.<anonymous> (/home/zkesarani/Dev/joplin-upstream/joplin/CliClient/tests-build/test-utils.js:386:15)
        at <Jasmine>
        at processTicksAndRejections (internal/process/task_queues.js:97:5)

275 specs, 49 failures
Finished in 166.007 seconds
Randomized with seed 74008 (jasmine --random=true --seed=74008)
npm ERR! Test failed.  See above for more details.
  • after then I created new directory and clone the repo using git clone https://github.com/laurent22/joplin.git and ran npm install then npm test in CliClient folder and got same error as above.

Looks like some PR got merged with failed build tests, can anyone please confirm this issue by try merging and running build tests so I can know if this issue is in my system or it’s problem with upstream/branch

Yeah. I got the issues as well. I think Laurent is aware of this. He’ll be fixing it.

Meanwhile, You can use filters in npm test to test one specific file or feature. Check CONTRIBUTING.md for details.

1 Like

Yea Thanks...I'm aware of that.

I don't require any build tests related to my PR I was just getting Travis CI test errors so I thought tests are failing because of my changes in code but now I'm relaxed :sweat_smile:

1 Like

Yes that should be fixed now.

Sorry for the late response I forgot to reply… Yes the issue is fixed now… Thanks.