@docstack/pouchdb-adapter-googledrive 0.0.6 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1408 @@
1
+
2
+ > @docstack/pouchdb-adapter-googledrive@0.0.8 test
3
+ > jest
4
+
5
+ PASS tests/replication_mock.test.ts (5.665 s)
6
+ ● Console
7
+
8
+ console.log
9
+ Initializing DriveHandler with options: {
10
+ accessToken: 'mock-token',
11
+ name: 'test-repl',
12
+ folderName: 'test-repl'
13
+ }
14
+
15
+ at new GoogleDrivePouch (src/adapter.ts:44:17)
16
+
17
+ console.log
18
+ [googledrive-drive] [test-repl] Loading database, options {
19
+ options: {
20
+ accessToken: 'mock-token',
21
+ name: 'test-repl',
22
+ folderName: 'test-repl'
23
+ }
24
+ }
25
+
26
+ at DriveHandler.log (src/drive.ts:69:17)
27
+
28
+ console.log
29
+ [googledrive-drive] [test-repl] Retrieved folder { folderId: 'file-17741779354920.9881210794887494' }
30
+
31
+ at DriveHandler.log (src/drive.ts:69:17)
32
+
33
+ console.log
34
+ [googledrive-drive] [test-repl] Meta file not found, creating new
35
+
36
+ at DriveHandler.log (src/drive.ts:69:17)
37
+
38
+ console.log
39
+ [googledrive-drive] [test-repl] Replaying change logs
40
+
41
+ at DriveHandler.log (src/drive.ts:69:17)
42
+
43
+ console.log
44
+ [googledrive-drive] [test-repl] Polling disabled (no interval provided)
45
+
46
+ at DriveHandler.log (src/drive.ts:69:17)
47
+
48
+ console.log
49
+ Initializing DriveHandler with options: {
50
+ accessToken: 'mock-token',
51
+ name: 'test-repl',
52
+ folderName: 'test-repl'
53
+ }
54
+
55
+ at new GoogleDrivePouch (src/adapter.ts:44:17)
56
+
57
+ console.log
58
+ [googledrive-drive] [test-repl] Loading database, options {
59
+ options: {
60
+ accessToken: 'mock-token',
61
+ name: 'test-repl',
62
+ folderName: 'test-repl'
63
+ }
64
+ }
65
+
66
+ at DriveHandler.log (src/drive.ts:69:17)
67
+
68
+ console.log
69
+ [googledrive-drive] [test-repl] Retrieved folder { folderId: 'file-17741779355060.18374676783948996' }
70
+
71
+ at DriveHandler.log (src/drive.ts:69:17)
72
+
73
+ console.log
74
+ [googledrive-drive] [test-repl] Meta file not found, creating new
75
+
76
+ at DriveHandler.log (src/drive.ts:69:17)
77
+
78
+ console.log
79
+ [googledrive-drive] [test-repl] Replaying change logs
80
+
81
+ at DriveHandler.log (src/drive.ts:69:17)
82
+
83
+ console.log
84
+ [googledrive-drive] [test-repl] Polling disabled (no interval provided)
85
+
86
+ at DriveHandler.log (src/drive.ts:69:17)
87
+
88
+ PASS tests/concurrency_mock.test.ts (6.309 s)
89
+ ● Console
90
+
91
+ console.log
92
+ [googledrive-drive] [test-db] Loading database, options { options: { accessToken: 'token', folderName: 'test-db' } }
93
+
94
+ at DriveHandler.log (src/drive.ts:69:17)
95
+
96
+ console.log
97
+ [googledrive-drive] [test-db] Retrieved folder { folderId: 'file-17741779354390.5514588522227568' }
98
+
99
+ at DriveHandler.log (src/drive.ts:69:17)
100
+
101
+ console.log
102
+ [googledrive-drive] [test-db] Meta file not found, creating new
103
+
104
+ at DriveHandler.log (src/drive.ts:69:17)
105
+
106
+ console.log
107
+ [googledrive-drive] [test-db] Replaying change logs
108
+
109
+ at DriveHandler.log (src/drive.ts:69:17)
110
+
111
+ console.log
112
+ [googledrive-drive] [test-db] Polling disabled (no interval provided)
113
+
114
+ at DriveHandler.log (src/drive.ts:69:17)
115
+
116
+ console.log
117
+ [googledrive-drive] [test-db] Loading database, options { options: { accessToken: 'token', folderName: 'test-db' } }
118
+
119
+ at DriveHandler.log (src/drive.ts:69:17)
120
+
121
+ console.log
122
+ [googledrive-drive] [test-db] Retrieved folder { folderId: 'file-17741779354390.5514588522227568' }
123
+
124
+ at DriveHandler.log (src/drive.ts:69:17)
125
+
126
+ console.log
127
+ [googledrive-drive] [test-db] Retrieved meta file { fileId: 'file-17741779354800.8578675150239752' }
128
+
129
+ at DriveHandler.log (src/drive.ts:69:17)
130
+
131
+ console.log
132
+ [googledrive-drive] [test-db] fetchFile downloading file-17741779354800.8578675150239752
133
+
134
+ at DriveHandler.log (src/drive.ts:69:17)
135
+
136
+ console.log
137
+ [googledrive-drive] [test-db] Replaying change logs
138
+
139
+ at DriveHandler.log (src/drive.ts:69:17)
140
+
141
+ console.log
142
+ [googledrive-drive] [test-db] Polling disabled (no interval provided)
143
+
144
+ at DriveHandler.log (src/drive.ts:69:17)
145
+
146
+ console.log
147
+ [googledrive-drive] [test-db] Loading database, options { options: { accessToken: 'token', folderName: 'test-db' } }
148
+
149
+ at DriveHandler.log (src/drive.ts:69:17)
150
+ at async Promise.all (index 1)
151
+
152
+ console.log
153
+ [googledrive-drive] [test-db] Retrieved meta file { fileId: 'file-17741779354800.8578675150239752' }
154
+
155
+ at DriveHandler.log (src/drive.ts:69:17)
156
+ at async Promise.all (index 1)
157
+
158
+ console.log
159
+ [googledrive-drive] [test-db] fetchFile downloading file-17741779354800.8578675150239752
160
+
161
+ at DriveHandler.log (src/drive.ts:69:17)
162
+ at async Promise.all (index 1)
163
+
164
+ console.log
165
+ [googledrive-drive] [test-db] Replaying change logs
166
+
167
+ at DriveHandler.log (src/drive.ts:69:17)
168
+ at async Promise.all (index 1)
169
+
170
+ console.log
171
+ [googledrive-drive] [test-db] Replaying change log file-17741779355310.21117590877850523
172
+
173
+ at DriveHandler.log (src/drive.ts:69:17)
174
+ at async Promise.all (index 1)
175
+
176
+ console.log
177
+ [googledrive-drive] [test-db] fetchFile downloading file-17741779355310.21117590877850523
178
+
179
+ at DriveHandler.log (src/drive.ts:69:17)
180
+ at async Promise.all (index 1)
181
+
182
+ console.log
183
+ [googledrive-drive] [test-db] Unexpected changes {
184
+ changes: {
185
+ seq: 1,
186
+ id: 'doc1',
187
+ rev: '1-a',
188
+ timestamp: 1774177935520,
189
+ doc: { val: 1 }
190
+ },
191
+ logId: 'file-17741779355310.21117590877850523'
192
+ }
193
+
194
+ at DriveHandler.log (src/drive.ts:69:17)
195
+ at async Promise.all (index 1)
196
+
197
+ console.log
198
+ [googledrive-drive] [test-db] Downloaded changes not an array, wrapping/ignoring object
199
+
200
+ at DriveHandler.log (src/drive.ts:69:17)
201
+ at async Promise.all (index 1)
202
+
203
+ console.log
204
+ [googledrive-drive] [test-db] Replayed change log file-17741779355310.21117590877850523
205
+
206
+ at DriveHandler.log (src/drive.ts:69:17)
207
+ at async Promise.all (index 1)
208
+
209
+ console.log
210
+ [googledrive-drive] [test-db] Processing change, sequence 1
211
+
212
+ at DriveHandler.log (src/drive.ts:69:17)
213
+ at async Promise.all (index 1)
214
+
215
+ console.log
216
+ [googledrive-drive] [test-db] Processed log file-17741779355310.21117590877850523
217
+
218
+ at DriveHandler.log (src/drive.ts:69:17)
219
+ at async Promise.all (index 1)
220
+
221
+ console.log
222
+ [googledrive-drive] [test-db] Polling disabled (no interval provided)
223
+
224
+ at DriveHandler.log (src/drive.ts:69:17)
225
+ at async Promise.all (index 1)
226
+
227
+ console.log
228
+ [googledrive-drive] [test-db] Loading database, options { options: { accessToken: 'token', folderName: 'test-db' } }
229
+
230
+ at DriveHandler.log (src/drive.ts:69:17)
231
+
232
+ console.log
233
+ [googledrive-drive] [test-db] Retrieved meta file { fileId: 'file-17741779354800.8578675150239752' }
234
+
235
+ at DriveHandler.log (src/drive.ts:69:17)
236
+
237
+ console.log
238
+ [googledrive-drive] [test-db] fetchFile downloading file-17741779354800.8578675150239752
239
+
240
+ at DriveHandler.log (src/drive.ts:69:17)
241
+
242
+ console.log
243
+ [googledrive-drive] [test-db] Replaying change logs
244
+
245
+ at DriveHandler.log (src/drive.ts:69:17)
246
+
247
+ console.log
248
+ [googledrive-drive] [test-db] Replaying change log file-17741779355310.21117590877850523
249
+
250
+ at DriveHandler.log (src/drive.ts:69:17)
251
+
252
+ console.log
253
+ [googledrive-drive] [test-db] fetchFile downloading file-17741779355310.21117590877850523
254
+
255
+ at DriveHandler.log (src/drive.ts:69:17)
256
+
257
+ console.log
258
+ [googledrive-drive] [test-db] Unexpected changes {
259
+ changes: {
260
+ seq: 1,
261
+ id: 'doc1',
262
+ rev: '1-a',
263
+ timestamp: 1774177935520,
264
+ doc: { val: 1 }
265
+ },
266
+ logId: 'file-17741779355310.21117590877850523'
267
+ }
268
+
269
+ at DriveHandler.log (src/drive.ts:69:17)
270
+
271
+ console.log
272
+ [googledrive-drive] [test-db] Downloaded changes not an array, wrapping/ignoring object
273
+
274
+ at DriveHandler.log (src/drive.ts:69:17)
275
+
276
+ console.log
277
+ [googledrive-drive] [test-db] Replayed change log file-17741779355310.21117590877850523
278
+
279
+ at DriveHandler.log (src/drive.ts:69:17)
280
+
281
+ console.log
282
+ [googledrive-drive] [test-db] Processing change, sequence 1
283
+
284
+ at DriveHandler.log (src/drive.ts:69:17)
285
+
286
+ console.log
287
+ [googledrive-drive] [test-db] Processed log file-17741779355310.21117590877850523
288
+
289
+ at DriveHandler.log (src/drive.ts:69:17)
290
+
291
+ console.log
292
+ [googledrive-drive] [test-db] Replaying change log file-17741779358830.2572491341701679
293
+
294
+ at DriveHandler.log (src/drive.ts:69:17)
295
+
296
+ console.log
297
+ [googledrive-drive] [test-db] fetchFile downloading file-17741779358830.2572491341701679
298
+
299
+ at DriveHandler.log (src/drive.ts:69:17)
300
+
301
+ console.log
302
+ [googledrive-drive] [test-db] Unexpected changes {
303
+ changes: {
304
+ seq: 2,
305
+ id: 'doc2',
306
+ rev: '1-b',
307
+ timestamp: 1774177935521,
308
+ doc: { val: 2 }
309
+ },
310
+ logId: 'file-17741779358830.2572491341701679'
311
+ }
312
+
313
+ at DriveHandler.log (src/drive.ts:69:17)
314
+
315
+ console.log
316
+ [googledrive-drive] [test-db] Downloaded changes not an array, wrapping/ignoring object
317
+
318
+ at DriveHandler.log (src/drive.ts:69:17)
319
+
320
+ console.log
321
+ [googledrive-drive] [test-db] Replayed change log file-17741779358830.2572491341701679
322
+
323
+ at DriveHandler.log (src/drive.ts:69:17)
324
+
325
+ console.log
326
+ [googledrive-drive] [test-db] Processing change, sequence 2
327
+
328
+ at DriveHandler.log (src/drive.ts:69:17)
329
+
330
+ console.log
331
+ [googledrive-drive] [test-db] Processed log file-17741779358830.2572491341701679
332
+
333
+ at DriveHandler.log (src/drive.ts:69:17)
334
+
335
+ console.log
336
+ [googledrive-drive] [test-db] Polling disabled (no interval provided)
337
+
338
+ at DriveHandler.log (src/drive.ts:69:17)
339
+
340
+ console.log
341
+ [googledrive-drive] [test-db] fetchFile cache hit file-17741779355310.21117590877850523
342
+
343
+ at DriveHandler.log (src/drive.ts:69:17)
344
+
345
+ console.log
346
+ [googledrive-drive] [test-db] fetchFile cache hit file-17741779358830.2572491341701679
347
+
348
+ at DriveHandler.log (src/drive.ts:69:17)
349
+
350
+ console.log
351
+ [googledrive-drive] [test-db] Loading database, options { options: { accessToken: 'token', folderName: 'test-db' } }
352
+
353
+ at DriveHandler.log (src/drive.ts:69:17)
354
+
355
+ console.log
356
+ [googledrive-drive] [test-db] Retrieved folder { folderId: 'file-17741779359770.225079804679158' }
357
+
358
+ at DriveHandler.log (src/drive.ts:69:17)
359
+
360
+ console.log
361
+ [googledrive-drive] [test-db] Meta file not found, creating new
362
+
363
+ at DriveHandler.log (src/drive.ts:69:17)
364
+
365
+ console.log
366
+ [googledrive-drive] [test-db] Replaying change logs
367
+
368
+ at DriveHandler.log (src/drive.ts:69:17)
369
+
370
+ console.log
371
+ [googledrive-drive] [test-db] Polling disabled (no interval provided)
372
+
373
+ at DriveHandler.log (src/drive.ts:69:17)
374
+
375
+ console.log
376
+ [googledrive-drive] [test-db] Loading database, options { options: { accessToken: 'token', folderName: 'test-db' } }
377
+
378
+ at DriveHandler.log (src/drive.ts:69:17)
379
+
380
+ console.log
381
+ [googledrive-drive] [test-db] Retrieved folder { folderId: 'file-17741779359770.225079804679158' }
382
+
383
+ at DriveHandler.log (src/drive.ts:69:17)
384
+
385
+ console.log
386
+ [googledrive-drive] [test-db] Retrieved meta file { fileId: 'file-17741779360110.7889871232891004' }
387
+
388
+ at DriveHandler.log (src/drive.ts:69:17)
389
+
390
+ console.log
391
+ [googledrive-drive] [test-db] fetchFile downloading file-17741779360110.7889871232891004
392
+
393
+ at DriveHandler.log (src/drive.ts:69:17)
394
+
395
+ console.log
396
+ [googledrive-drive] [test-db] Replaying change logs
397
+
398
+ at DriveHandler.log (src/drive.ts:69:17)
399
+
400
+ console.log
401
+ [googledrive-drive] [test-db] Polling disabled (no interval provided)
402
+
403
+ at DriveHandler.log (src/drive.ts:69:17)
404
+
405
+ console.log
406
+ [googledrive-drive] [test-db] Loading database, options { options: { accessToken: 'token', folderName: 'test-db' } }
407
+
408
+ at DriveHandler.log (src/drive.ts:69:17)
409
+
410
+ console.log
411
+ [googledrive-drive] [test-db] Retrieved meta file { fileId: 'file-17741779360110.7889871232891004' }
412
+
413
+ at DriveHandler.log (src/drive.ts:69:17)
414
+
415
+ console.log
416
+ [googledrive-drive] [test-db] fetchFile downloading file-17741779360110.7889871232891004
417
+
418
+ at DriveHandler.log (src/drive.ts:69:17)
419
+
420
+ console.log
421
+ [googledrive-drive] [test-db] Replaying change logs
422
+
423
+ at DriveHandler.log (src/drive.ts:69:17)
424
+
425
+ console.log
426
+ [googledrive-drive] [test-db] Replaying change log file-17741779360570.8410458653170876
427
+
428
+ at DriveHandler.log (src/drive.ts:69:17)
429
+
430
+ console.log
431
+ [googledrive-drive] [test-db] fetchFile downloading file-17741779360570.8410458653170876
432
+
433
+ at DriveHandler.log (src/drive.ts:69:17)
434
+
435
+ console.log
436
+ [googledrive-drive] [test-db] Unexpected changes {
437
+ changes: {
438
+ seq: 1,
439
+ id: 'doc1',
440
+ rev: '1-a',
441
+ timestamp: 1774177936047,
442
+ doc: { val: 1 }
443
+ },
444
+ logId: 'file-17741779360570.8410458653170876'
445
+ }
446
+
447
+ at DriveHandler.log (src/drive.ts:69:17)
448
+
449
+ console.log
450
+ [googledrive-drive] [test-db] Downloaded changes not an array, wrapping/ignoring object
451
+
452
+ at DriveHandler.log (src/drive.ts:69:17)
453
+
454
+ console.log
455
+ [googledrive-drive] [test-db] Replayed change log file-17741779360570.8410458653170876
456
+
457
+ at DriveHandler.log (src/drive.ts:69:17)
458
+
459
+ console.log
460
+ [googledrive-drive] [test-db] Processing change, sequence 1
461
+
462
+ at DriveHandler.log (src/drive.ts:69:17)
463
+
464
+ console.log
465
+ [googledrive-drive] [test-db] Processed log file-17741779360570.8410458653170876
466
+
467
+ at DriveHandler.log (src/drive.ts:69:17)
468
+
469
+ console.log
470
+ [googledrive-drive] [test-db] Polling disabled (no interval provided)
471
+
472
+ at DriveHandler.log (src/drive.ts:69:17)
473
+
474
+ PASS tests/adapter.test.ts (6.763 s)
475
+ ● Console
476
+
477
+ console.log
478
+ [dotenv@17.3.1] injecting env (1) from .env -- tip: ⚙️ load multiple .env files with { path: ['.env.local', '.env'] }
479
+
480
+ at _log (node_modules/dotenv/lib/main.js:139:11)
481
+
482
+ console.log
483
+ Test Drive Server running on port 35455
484
+
485
+ at Server.<anonymous> (tests-src/server.ts:46:25)
486
+
487
+ console.log
488
+ Initializing DriveHandler with options: {
489
+ accessToken: 'mock-token',
490
+ adapter: 'googledrive',
491
+ testMode: true,
492
+ testServerUrl: 'http://127.0.0.1:35455',
493
+ pollingIntervalMs: 0,
494
+ deterministic_revs: true,
495
+ name: 'test-db-1774177936090'
496
+ }
497
+
498
+ at PouchDB.GoogleDrivePouch (src/adapter.ts:44:17)
499
+
500
+ console.log
501
+ [googledrive-drive] [test-db-1774177936090] Loading database, options {
502
+ options: {
503
+ accessToken: 'mock-token',
504
+ adapter: 'googledrive',
505
+ testMode: true,
506
+ testServerUrl: 'http://127.0.0.1:35455',
507
+ pollingIntervalMs: 0,
508
+ deterministic_revs: true,
509
+ name: 'test-db-1774177936090'
510
+ }
511
+ }
512
+
513
+ at DriveHandler.log (src/drive.ts:69:17)
514
+
515
+ console.log
516
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27test-db-1774177936090%27%20and%20mimeType%20%3D%20%27application%2Fvnd.google-apps.folder%27%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
517
+
518
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
519
+
520
+ console.log
521
+ GET /drive/v3/files?q=name%20%3D%20%27test-db-1774177936090%27%20and%20mimeType%20%3D%20%27application%2Fvnd.google-apps.folder%27%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
522
+
523
+ at tests-src/server.ts:22:21
524
+
525
+ console.log
526
+ POST /drive/v3/files?fields=id,modifiedTime
527
+
528
+ at tests-src/server.ts:22:21
529
+
530
+ console.log
531
+ [googledrive-drive] [test-db-1774177936090] Retrieved folder { folderId: 'jqu2szorru9' }
532
+
533
+ at DriveHandler.log (src/drive.ts:69:17)
534
+
535
+ console.log
536
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27jqu2szorru9%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
537
+
538
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
539
+
540
+ console.log
541
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27jqu2szorru9%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
542
+
543
+ at tests-src/server.ts:22:21
544
+
545
+ console.log
546
+ [googledrive-drive] [test-db-1774177936090] Meta file not found, creating new
547
+
548
+ at DriveHandler.log (src/drive.ts:69:17)
549
+
550
+ console.log
551
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27jqu2szorru9%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
552
+
553
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
554
+
555
+ console.log
556
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27jqu2szorru9%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
557
+
558
+ at tests-src/server.ts:22:21
559
+
560
+ console.log
561
+ POST /upload/drive/v3/files?uploadType=multipart&fields=id,modifiedTime
562
+
563
+ at tests-src/server.ts:22:21
564
+
565
+ console.log
566
+ [googledrive-drive] [test-db-1774177936090] Replaying change logs
567
+
568
+ at DriveHandler.log (src/drive.ts:69:17)
569
+
570
+ console.log
571
+ [googledrive-drive] [test-db-1774177936090] Polling disabled (no interval provided)
572
+
573
+ at DriveHandler.log (src/drive.ts:69:17)
574
+
575
+ console.log
576
+ POST /upload/drive/v3/files?uploadType=multipart&fields=id,modifiedTime
577
+
578
+ at tests-src/server.ts:22:21
579
+
580
+ console.log
581
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27jqu2szorru9%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
582
+
583
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
584
+
585
+ console.log
586
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27jqu2szorru9%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
587
+
588
+ at tests-src/server.ts:22:21
589
+
590
+ console.log
591
+ PATCH /upload/drive/v3/files/a7gszl8y5ir?uploadType=media&fields=id,modifiedTime
592
+
593
+ at tests-src/server.ts:22:21
594
+
595
+ console.log
596
+ [googledrive-drive] [test-db-1774177936090] Loading database, options {
597
+ options: {
598
+ accessToken: 'mock-token',
599
+ adapter: 'googledrive',
600
+ testMode: true,
601
+ testServerUrl: 'http://127.0.0.1:35455',
602
+ pollingIntervalMs: 0,
603
+ deterministic_revs: true,
604
+ name: 'test-db-1774177936090'
605
+ }
606
+ }
607
+
608
+ at DriveHandler.log (src/drive.ts:69:17)
609
+
610
+ console.log
611
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27jqu2szorru9%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
612
+
613
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
614
+
615
+ console.log
616
+ DELETE /drive/v3/files/r8pybcnme1r
617
+
618
+ at tests-src/server.ts:22:21
619
+
620
+ console.log
621
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27jqu2szorru9%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
622
+
623
+ at tests-src/server.ts:22:21
624
+
625
+ console.log
626
+ [googledrive-drive] [test-db-1774177936090] Retrieved meta file { fileId: 'a7gszl8y5ir' }
627
+
628
+ at DriveHandler.log (src/drive.ts:69:17)
629
+
630
+ console.log
631
+ [googledrive-drive] [test-db-1774177936090] fetchFile downloading a7gszl8y5ir
632
+
633
+ at DriveHandler.log (src/drive.ts:69:17)
634
+
635
+ console.log
636
+ GET /drive/v3/files/a7gszl8y5ir?alt=media
637
+
638
+ at tests-src/server.ts:22:21
639
+
640
+ console.log
641
+ [googledrive-drive] [test-db-1774177936090] Replaying change logs
642
+
643
+ at DriveHandler.log (src/drive.ts:69:17)
644
+
645
+ console.log
646
+ [googledrive-drive] [test-db-1774177936090] Polling disabled (no interval provided)
647
+
648
+ at DriveHandler.log (src/drive.ts:69:17)
649
+
650
+ console.log
651
+ POST /upload/drive/v3/files?uploadType=multipart&fields=id,modifiedTime
652
+
653
+ at tests-src/server.ts:22:21
654
+
655
+ console.log
656
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27jqu2szorru9%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
657
+
658
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
659
+
660
+ console.log
661
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27jqu2szorru9%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
662
+
663
+ at tests-src/server.ts:22:21
664
+
665
+ console.log
666
+ PATCH /upload/drive/v3/files/a7gszl8y5ir?uploadType=media&fields=id,modifiedTime
667
+
668
+ at tests-src/server.ts:22:21
669
+
670
+
671
+ <--- Last few GCs --->
672
+
673
+ [31559:0x1d75d000] 42221 ms: Mark-Compact (reduce) 2045.6 (2089.0) -> 2044.5 (2083.5) MB, pooled: 0 MB, 645.57 / 0.00 ms (+ 275.7 ms in 0 steps since start of marking, biggest step 0.0 ms, walltime since start of marking 965 ms) (average mu = 0.293, c[31559:0x1d75d000] 43367 ms: Mark-Compact 2045.6 (2083.7) -> 2043.3 (2087.0) MB, pooled: 0 MB, 1140.29 / 0.00 ms (average mu = 0.162, current mu = 0.005) allocation failure; scavenge might not succeed
674
+
675
+
676
+ <--- JS stacktrace --->
677
+
678
+ FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
679
+ ----- Native stack trace -----
680
+
681
+ FAIL tests/emulation.test.ts
682
+ ● Test suite failed to run
683
+
684
+ Jest worker ran out of memory and crashed
685
+
686
+ at ChildProcessWorker._onExit (node_modules/jest-worker/build/index.js:928:26)
687
+
688
+ PASS tests/compaction.test.ts (43.388 s)
689
+ ● Console
690
+
691
+ console.log
692
+ [dotenv@17.3.1] injecting env (1) from .env -- tip: 🔐 prevent committing .env to code: https://dotenvx.com/precommit
693
+
694
+ at _log (node_modules/dotenv/lib/main.js:139:11)
695
+
696
+ console.log
697
+ [dotenv@17.3.1] injecting env (0) from .env -- tip: ⚙️ suppress all logs with { quiet: true }
698
+
699
+ at _log (node_modules/dotenv/lib/main.js:139:11)
700
+
701
+ console.log
702
+ Test Drive Server running on port 45355
703
+
704
+ at Server.<anonymous> (tests-src/server.ts:46:25)
705
+
706
+ console.log
707
+ Initializing DriveHandler with options: {
708
+ accessToken: 'mock-token',
709
+ adapter: 'googledrive',
710
+ testMode: true,
711
+ testServerUrl: 'http://127.0.0.1:45355',
712
+ pollingIntervalMs: 0,
713
+ compactionThreshold: 3,
714
+ deterministic_revs: true,
715
+ name: 'test-compaction-1774177936090'
716
+ }
717
+
718
+ at PouchDB.GoogleDrivePouch (src/adapter.ts:44:17)
719
+
720
+ console.log
721
+ [googledrive-drive] [test-compaction-1774177936090] Loading database, options {
722
+ options: {
723
+ accessToken: 'mock-token',
724
+ adapter: 'googledrive',
725
+ testMode: true,
726
+ testServerUrl: 'http://127.0.0.1:45355',
727
+ pollingIntervalMs: 0,
728
+ compactionThreshold: 3,
729
+ deterministic_revs: true,
730
+ name: 'test-compaction-1774177936090'
731
+ }
732
+ }
733
+
734
+ at DriveHandler.log (src/drive.ts:69:17)
735
+
736
+ console.log
737
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27test-compaction-1774177936090%27%20and%20mimeType%20%3D%20%27application%2Fvnd.google-apps.folder%27%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
738
+
739
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
740
+
741
+ console.log
742
+ GET /drive/v3/files?q=name%20%3D%20%27test-compaction-1774177936090%27%20and%20mimeType%20%3D%20%27application%2Fvnd.google-apps.folder%27%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
743
+
744
+ at tests-src/server.ts:22:21
745
+
746
+ console.log
747
+ POST /drive/v3/files?fields=id,modifiedTime
748
+
749
+ at tests-src/server.ts:22:21
750
+
751
+ console.log
752
+ [googledrive-drive] [test-compaction-1774177936090] Retrieved folder { folderId: 'b37sh9rdigp' }
753
+
754
+ at DriveHandler.log (src/drive.ts:69:17)
755
+
756
+ console.log
757
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
758
+
759
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
760
+
761
+ console.log
762
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
763
+
764
+ at tests-src/server.ts:22:21
765
+
766
+ console.log
767
+ [googledrive-drive] [test-compaction-1774177936090] Meta file not found, creating new
768
+
769
+ at DriveHandler.log (src/drive.ts:69:17)
770
+
771
+ console.log
772
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
773
+
774
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
775
+
776
+ console.log
777
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
778
+
779
+ at tests-src/server.ts:22:21
780
+
781
+ console.log
782
+ POST /upload/drive/v3/files?uploadType=multipart&fields=id,modifiedTime
783
+
784
+ at tests-src/server.ts:22:21
785
+
786
+ console.log
787
+ [googledrive-drive] [test-compaction-1774177936090] Replaying change logs
788
+
789
+ at DriveHandler.log (src/drive.ts:69:17)
790
+
791
+ console.log
792
+ [googledrive-drive] [test-compaction-1774177936090] Polling disabled (no interval provided)
793
+
794
+ at DriveHandler.log (src/drive.ts:69:17)
795
+
796
+ console.log
797
+ POST /upload/drive/v3/files?uploadType=multipart&fields=id,modifiedTime
798
+
799
+ at tests-src/server.ts:22:21
800
+
801
+ console.log
802
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
803
+
804
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
805
+
806
+ console.log
807
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
808
+
809
+ at tests-src/server.ts:22:21
810
+
811
+ console.log
812
+ PATCH /upload/drive/v3/files/mmwpyz6aa2e?uploadType=media&fields=id,modifiedTime
813
+
814
+ at tests-src/server.ts:22:21
815
+
816
+ console.log
817
+ [googledrive-drive] [test-compaction-1774177936090] Loading database, options {
818
+ options: {
819
+ accessToken: 'mock-token',
820
+ adapter: 'googledrive',
821
+ testMode: true,
822
+ testServerUrl: 'http://127.0.0.1:45355',
823
+ pollingIntervalMs: 0,
824
+ compactionThreshold: 3,
825
+ deterministic_revs: true,
826
+ name: 'test-compaction-1774177936090'
827
+ }
828
+ }
829
+
830
+ at DriveHandler.log (src/drive.ts:69:17)
831
+
832
+ console.log
833
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
834
+
835
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
836
+
837
+ console.log
838
+ DELETE /drive/v3/files/cdtduwukrek
839
+
840
+ at tests-src/server.ts:22:21
841
+
842
+ console.log
843
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
844
+
845
+ at tests-src/server.ts:22:21
846
+
847
+ console.log
848
+ [googledrive-drive] [test-compaction-1774177936090] Retrieved meta file { fileId: 'mmwpyz6aa2e' }
849
+
850
+ at DriveHandler.log (src/drive.ts:69:17)
851
+
852
+ console.log
853
+ [googledrive-drive] [test-compaction-1774177936090] fetchFile downloading mmwpyz6aa2e
854
+
855
+ at DriveHandler.log (src/drive.ts:69:17)
856
+
857
+ console.log
858
+ GET /drive/v3/files/mmwpyz6aa2e?alt=media
859
+
860
+ at tests-src/server.ts:22:21
861
+
862
+ console.log
863
+ [googledrive-drive] [test-compaction-1774177936090] Replaying change logs
864
+
865
+ at DriveHandler.log (src/drive.ts:69:17)
866
+
867
+ console.log
868
+ [googledrive-drive] [test-compaction-1774177936090] Polling disabled (no interval provided)
869
+
870
+ at DriveHandler.log (src/drive.ts:69:17)
871
+
872
+ console.log
873
+ POST /upload/drive/v3/files?uploadType=multipart&fields=id,modifiedTime
874
+
875
+ at tests-src/server.ts:22:21
876
+
877
+ console.log
878
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
879
+
880
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
881
+
882
+ console.log
883
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
884
+
885
+ at tests-src/server.ts:22:21
886
+
887
+ console.log
888
+ PATCH /upload/drive/v3/files/mmwpyz6aa2e?uploadType=media&fields=id,modifiedTime
889
+
890
+ at tests-src/server.ts:22:21
891
+
892
+ console.log
893
+ POST /upload/drive/v3/files?uploadType=multipart&fields=id,modifiedTime
894
+
895
+ at tests-src/server.ts:22:21
896
+
897
+ console.log
898
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
899
+
900
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
901
+
902
+ console.log
903
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
904
+
905
+ at tests-src/server.ts:22:21
906
+
907
+ console.log
908
+ PATCH /upload/drive/v3/files/mmwpyz6aa2e?uploadType=media&fields=id,modifiedTime
909
+
910
+ at tests-src/server.ts:22:21
911
+
912
+ console.log
913
+ [googledrive-drive] [test-compaction-1774177936090] Loading database, options {
914
+ options: {
915
+ accessToken: 'mock-token',
916
+ adapter: 'googledrive',
917
+ testMode: true,
918
+ testServerUrl: 'http://127.0.0.1:45355',
919
+ pollingIntervalMs: 0,
920
+ compactionThreshold: 3,
921
+ deterministic_revs: true,
922
+ name: 'test-compaction-1774177936090'
923
+ }
924
+ }
925
+
926
+ at DriveHandler.log (src/drive.ts:69:17)
927
+
928
+ console.log
929
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
930
+
931
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
932
+
933
+ console.log
934
+ DELETE /drive/v3/files/javyqnt07ws
935
+
936
+ at tests-src/server.ts:22:21
937
+
938
+ console.log
939
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
940
+
941
+ at tests-src/server.ts:22:21
942
+
943
+ console.log
944
+ [googledrive-drive] [test-compaction-1774177936090] Retrieved meta file { fileId: 'mmwpyz6aa2e' }
945
+
946
+ at DriveHandler.log (src/drive.ts:69:17)
947
+
948
+ console.log
949
+ [googledrive-drive] [test-compaction-1774177936090] fetchFile downloading mmwpyz6aa2e
950
+
951
+ at DriveHandler.log (src/drive.ts:69:17)
952
+
953
+ console.log
954
+ GET /drive/v3/files/mmwpyz6aa2e?alt=media
955
+
956
+ at tests-src/server.ts:22:21
957
+
958
+ console.log
959
+ [googledrive-drive] [test-compaction-1774177936090] Replaying change logs
960
+
961
+ at DriveHandler.log (src/drive.ts:69:17)
962
+
963
+ console.log
964
+ [googledrive-drive] [test-compaction-1774177936090] Replaying change log a57knn0ufon
965
+
966
+ at DriveHandler.log (src/drive.ts:69:17)
967
+
968
+ console.log
969
+ [googledrive-drive] [test-compaction-1774177936090] fetchFile downloading a57knn0ufon
970
+
971
+ at DriveHandler.log (src/drive.ts:69:17)
972
+
973
+ console.log
974
+ GET /drive/v3/files/a57knn0ufon?alt=media
975
+
976
+ at tests-src/server.ts:22:21
977
+
978
+ console.log
979
+ [googledrive-drive] [test-compaction-1774177936090] Unexpected changes {
980
+ changes: {
981
+ seq: 1,
982
+ id: 'doc1',
983
+ rev: '1-b6jynhoa6vocxdfdba',
984
+ doc: { _id: 'doc1', val: 1, _rev: '1-b6jynhoa6vocxdfdba' },
985
+ timestamp: 1774177936245
986
+ },
987
+ logId: 'a57knn0ufon'
988
+ }
989
+
990
+ at DriveHandler.log (src/drive.ts:69:17)
991
+
992
+ console.log
993
+ [googledrive-drive] [test-compaction-1774177936090] Downloaded changes not an array, wrapping/ignoring object
994
+
995
+ at DriveHandler.log (src/drive.ts:69:17)
996
+
997
+ console.log
998
+ [googledrive-drive] [test-compaction-1774177936090] Replayed change log a57knn0ufon
999
+
1000
+ at DriveHandler.log (src/drive.ts:69:17)
1001
+
1002
+ console.log
1003
+ [googledrive-drive] [test-compaction-1774177936090] Processing change, sequence 1
1004
+
1005
+ at DriveHandler.log (src/drive.ts:69:17)
1006
+
1007
+ console.log
1008
+ [googledrive-drive] [test-compaction-1774177936090] Processed log a57knn0ufon
1009
+
1010
+ at DriveHandler.log (src/drive.ts:69:17)
1011
+
1012
+ console.log
1013
+ [googledrive-drive] [test-compaction-1774177936090] Polling disabled (no interval provided)
1014
+
1015
+ at DriveHandler.log (src/drive.ts:69:17)
1016
+
1017
+ console.log
1018
+ POST /upload/drive/v3/files?uploadType=multipart&fields=id,modifiedTime
1019
+
1020
+ at tests-src/server.ts:22:21
1021
+
1022
+ console.log
1023
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1024
+
1025
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
1026
+
1027
+ console.log
1028
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1029
+
1030
+ at tests-src/server.ts:22:21
1031
+
1032
+ console.log
1033
+ PATCH /upload/drive/v3/files/mmwpyz6aa2e?uploadType=media&fields=id,modifiedTime
1034
+
1035
+ at tests-src/server.ts:22:21
1036
+
1037
+ console.log
1038
+ POST /upload/drive/v3/files?uploadType=multipart&fields=id,modifiedTime
1039
+
1040
+ at tests-src/server.ts:22:21
1041
+
1042
+ console.log
1043
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1044
+
1045
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
1046
+
1047
+ console.log
1048
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1049
+
1050
+ at tests-src/server.ts:22:21
1051
+
1052
+ console.log
1053
+ PATCH /upload/drive/v3/files/mmwpyz6aa2e?uploadType=media&fields=id,modifiedTime
1054
+
1055
+ at tests-src/server.ts:22:21
1056
+
1057
+ console.log
1058
+ [googledrive-drive] [test-compaction-1774177936090] Loading database, options {
1059
+ options: {
1060
+ accessToken: 'mock-token',
1061
+ adapter: 'googledrive',
1062
+ testMode: true,
1063
+ testServerUrl: 'http://127.0.0.1:45355',
1064
+ pollingIntervalMs: 0,
1065
+ compactionThreshold: 3,
1066
+ deterministic_revs: true,
1067
+ name: 'test-compaction-1774177936090'
1068
+ }
1069
+ }
1070
+
1071
+ at DriveHandler.log (src/drive.ts:69:17)
1072
+
1073
+ console.log
1074
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1075
+
1076
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
1077
+
1078
+ console.log
1079
+ DELETE /drive/v3/files/50asm455hsa
1080
+
1081
+ at tests-src/server.ts:22:21
1082
+
1083
+ console.log
1084
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1085
+
1086
+ at tests-src/server.ts:22:21
1087
+
1088
+ console.log
1089
+ [googledrive-drive] [test-compaction-1774177936090] Retrieved meta file { fileId: 'mmwpyz6aa2e' }
1090
+
1091
+ at DriveHandler.log (src/drive.ts:69:17)
1092
+
1093
+ console.log
1094
+ [googledrive-drive] [test-compaction-1774177936090] fetchFile downloading mmwpyz6aa2e
1095
+
1096
+ at DriveHandler.log (src/drive.ts:69:17)
1097
+
1098
+ console.log
1099
+ GET /drive/v3/files/mmwpyz6aa2e?alt=media
1100
+
1101
+ at tests-src/server.ts:22:21
1102
+
1103
+ console.log
1104
+ [googledrive-drive] [test-compaction-1774177936090] Replaying change logs
1105
+
1106
+ at DriveHandler.log (src/drive.ts:69:17)
1107
+
1108
+ console.log
1109
+ [googledrive-drive] [test-compaction-1774177936090] Replaying change log e9xvdv0mqig
1110
+
1111
+ at DriveHandler.log (src/drive.ts:69:17)
1112
+
1113
+ console.log
1114
+ [googledrive-drive] [test-compaction-1774177936090] fetchFile downloading e9xvdv0mqig
1115
+
1116
+ at DriveHandler.log (src/drive.ts:69:17)
1117
+
1118
+ console.log
1119
+ GET /drive/v3/files/e9xvdv0mqig?alt=media
1120
+
1121
+ at tests-src/server.ts:22:21
1122
+
1123
+ console.log
1124
+ [googledrive-drive] [test-compaction-1774177936090] Unexpected changes {
1125
+ changes: {
1126
+ seq: 2,
1127
+ id: 'doc2',
1128
+ rev: '1-27g6m653hr8b526dyz',
1129
+ doc: { _id: 'doc2', val: 2, _rev: '1-27g6m653hr8b526dyz' },
1130
+ timestamp: 1774177936501
1131
+ },
1132
+ logId: 'e9xvdv0mqig'
1133
+ }
1134
+
1135
+ at DriveHandler.log (src/drive.ts:69:17)
1136
+
1137
+ console.log
1138
+ [googledrive-drive] [test-compaction-1774177936090] Downloaded changes not an array, wrapping/ignoring object
1139
+
1140
+ at DriveHandler.log (src/drive.ts:69:17)
1141
+
1142
+ console.log
1143
+ [googledrive-drive] [test-compaction-1774177936090] Replayed change log e9xvdv0mqig
1144
+
1145
+ at DriveHandler.log (src/drive.ts:69:17)
1146
+
1147
+ console.log
1148
+ [googledrive-drive] [test-compaction-1774177936090] Processing change, sequence 2
1149
+
1150
+ at DriveHandler.log (src/drive.ts:69:17)
1151
+
1152
+ console.log
1153
+ [googledrive-drive] [test-compaction-1774177936090] Processed log e9xvdv0mqig
1154
+
1155
+ at DriveHandler.log (src/drive.ts:69:17)
1156
+
1157
+ console.log
1158
+ [googledrive-drive] [test-compaction-1774177936090] Polling disabled (no interval provided)
1159
+
1160
+ at DriveHandler.log (src/drive.ts:69:17)
1161
+
1162
+ console.log
1163
+ POST /upload/drive/v3/files?uploadType=multipart&fields=id,modifiedTime
1164
+
1165
+ at tests-src/server.ts:22:21
1166
+
1167
+ console.log
1168
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1169
+
1170
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
1171
+
1172
+ console.log
1173
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1174
+
1175
+ at tests-src/server.ts:22:21
1176
+
1177
+ console.log
1178
+ PATCH /upload/drive/v3/files/mmwpyz6aa2e?uploadType=media&fields=id,modifiedTime
1179
+
1180
+ at tests-src/server.ts:22:21
1181
+
1182
+ console.log
1183
+ [googledrive-drive] [test-compaction-1774177936090] Starting compaction
1184
+
1185
+ at DriveHandler.log (src/drive.ts:69:17)
1186
+
1187
+ console.log
1188
+ [googledrive-drive] [test-compaction-1774177936090] fetchFile cache hit a57knn0ufon
1189
+
1190
+ at DriveHandler.log (src/drive.ts:69:17)
1191
+
1192
+ console.log
1193
+ [googledrive-drive] [test-compaction-1774177936090] fetchFile cache hit e9xvdv0mqig
1194
+
1195
+ at DriveHandler.log (src/drive.ts:69:17)
1196
+
1197
+ console.log
1198
+ POST /upload/drive/v3/files?uploadType=multipart&fields=id,modifiedTime
1199
+
1200
+ at tests-src/server.ts:22:21
1201
+
1202
+ console.log
1203
+ POST /upload/drive/v3/files?uploadType=multipart&fields=id,modifiedTime
1204
+
1205
+ at tests-src/server.ts:22:21
1206
+
1207
+ console.log
1208
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1209
+
1210
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
1211
+
1212
+ console.log
1213
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1214
+
1215
+ at tests-src/server.ts:22:21
1216
+
1217
+ console.log
1218
+ [googledrive-drive] [test-compaction-1774177936090] fetchFile downloading mmwpyz6aa2e
1219
+
1220
+ at DriveHandler.log (src/drive.ts:69:17)
1221
+
1222
+ console.log
1223
+ GET /drive/v3/files/mmwpyz6aa2e?alt=media
1224
+
1225
+ at tests-src/server.ts:22:21
1226
+
1227
+ console.log
1228
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1229
+
1230
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
1231
+
1232
+ console.log
1233
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1234
+
1235
+ at tests-src/server.ts:22:21
1236
+
1237
+ console.log
1238
+ PATCH /upload/drive/v3/files/mmwpyz6aa2e?uploadType=media&fields=id,modifiedTime
1239
+
1240
+ at tests-src/server.ts:22:21
1241
+
1242
+ console.log
1243
+ DELETE /drive/v3/files/a57knn0ufon
1244
+
1245
+ at tests-src/server.ts:22:21
1246
+
1247
+ console.log
1248
+ [googledrive-drive] [test-compaction-1774177936090] Deleted file a57knn0ufon
1249
+
1250
+ at DriveHandler.log (src/drive.ts:69:17)
1251
+
1252
+ console.log
1253
+ DELETE /drive/v3/files/e9xvdv0mqig
1254
+
1255
+ at tests-src/server.ts:22:21
1256
+
1257
+ console.log
1258
+ [googledrive-drive] [test-compaction-1774177936090] Deleted file e9xvdv0mqig
1259
+
1260
+ at DriveHandler.log (src/drive.ts:69:17)
1261
+
1262
+ console.log
1263
+ DELETE /drive/v3/files/vuv8aavujb
1264
+
1265
+ at tests-src/server.ts:22:21
1266
+
1267
+ console.log
1268
+ [googledrive-drive] [test-compaction-1774177936090] Deleted file vuv8aavujb
1269
+
1270
+ at DriveHandler.log (src/drive.ts:69:17)
1271
+
1272
+ console.log
1273
+ POST /upload/drive/v3/files?uploadType=multipart&fields=id,modifiedTime
1274
+
1275
+ at tests-src/server.ts:22:21
1276
+
1277
+ console.log
1278
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1279
+
1280
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
1281
+
1282
+ console.log
1283
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1284
+
1285
+ at tests-src/server.ts:22:21
1286
+
1287
+ console.log
1288
+ PATCH /upload/drive/v3/files/mmwpyz6aa2e?uploadType=media&fields=id,modifiedTime
1289
+
1290
+ at tests-src/server.ts:22:21
1291
+
1292
+ console.log
1293
+ [googledrive-drive] [test-compaction-1774177936090] Loading database, options {
1294
+ options: {
1295
+ accessToken: 'mock-token',
1296
+ adapter: 'googledrive',
1297
+ testMode: true,
1298
+ testServerUrl: 'http://127.0.0.1:45355',
1299
+ pollingIntervalMs: 0,
1300
+ compactionThreshold: 3,
1301
+ deterministic_revs: true,
1302
+ name: 'test-compaction-1774177936090'
1303
+ }
1304
+ }
1305
+
1306
+ at DriveHandler.log (src/drive.ts:69:17)
1307
+
1308
+ console.log
1309
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1310
+
1311
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
1312
+
1313
+ console.log
1314
+ DELETE /drive/v3/files/habe7525tnl
1315
+
1316
+ at tests-src/server.ts:22:21
1317
+
1318
+ console.log
1319
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1320
+
1321
+ at tests-src/server.ts:22:21
1322
+
1323
+ console.log
1324
+ [googledrive-drive] [test-compaction-1774177936090] Retrieved meta file { fileId: 'mmwpyz6aa2e' }
1325
+
1326
+ at DriveHandler.log (src/drive.ts:69:17)
1327
+
1328
+ console.log
1329
+ [googledrive-drive] [test-compaction-1774177936090] fetchFile downloading mmwpyz6aa2e
1330
+
1331
+ at DriveHandler.log (src/drive.ts:69:17)
1332
+
1333
+ console.log
1334
+ GET /drive/v3/files/mmwpyz6aa2e?alt=media
1335
+
1336
+ at tests-src/server.ts:22:21
1337
+
1338
+ console.log
1339
+ [googledrive-drive] [test-compaction-1774177936090] Snapshot index changed, loading index { snapshotIndexId: 'e0s76kp3ena', currentSnapshotIndexId: null }
1340
+
1341
+ at DriveHandler.log (src/drive.ts:69:17)
1342
+
1343
+ console.log
1344
+ [googledrive-drive] [test-compaction-1774177936090] fetchFile downloading e0s76kp3ena
1345
+
1346
+ at DriveHandler.log (src/drive.ts:69:17)
1347
+
1348
+ console.log
1349
+ GET /drive/v3/files/e0s76kp3ena?alt=media
1350
+
1351
+ at tests-src/server.ts:22:21
1352
+
1353
+ console.log
1354
+ [googledrive-drive] [test-compaction-1774177936090] Replaying change logs
1355
+
1356
+ at DriveHandler.log (src/drive.ts:69:17)
1357
+
1358
+ console.log
1359
+ [googledrive-drive] [test-compaction-1774177936090] Polling disabled (no interval provided)
1360
+
1361
+ at DriveHandler.log (src/drive.ts:69:17)
1362
+
1363
+ console.log
1364
+ POST /upload/drive/v3/files?uploadType=multipart&fields=id,modifiedTime
1365
+
1366
+ at tests-src/server.ts:22:21
1367
+
1368
+ console.log
1369
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1370
+
1371
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
1372
+
1373
+ console.log
1374
+ GET /drive/v3/files?q=name%20%3D%20%27_meta.json%27%20and%20%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1375
+
1376
+ at tests-src/server.ts:22:21
1377
+
1378
+ console.log
1379
+ PATCH /upload/drive/v3/files/mmwpyz6aa2e?uploadType=media&fields=id,modifiedTime
1380
+
1381
+ at tests-src/server.ts:22:21
1382
+
1383
+ console.log
1384
+ [GoogleDriveClient] listFiles query: q=name%20%3D%20%27test-compaction-1774177936090%27%20and%20mimeType%20%3D%20%27application%2Fvnd.google-apps.folder%27%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1385
+
1386
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
1387
+
1388
+ console.log
1389
+ GET /drive/v3/files?q=name%20%3D%20%27test-compaction-1774177936090%27%20and%20mimeType%20%3D%20%27application%2Fvnd.google-apps.folder%27%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1390
+
1391
+ at tests-src/server.ts:22:21
1392
+
1393
+ console.log
1394
+ [GoogleDriveClient] listFiles query: q=%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1395
+
1396
+ at GoogleDriveClient.listFiles (src/client.ts:97:17)
1397
+
1398
+ console.log
1399
+ GET /drive/v3/files?q=%27b37sh9rdigp%27%20in%20parents%20and%20trashed%20%3D%20false&fields=files%28id%2Cname%2CmimeType%2Cparents%2CmodifiedTime%29
1400
+
1401
+ at tests-src/server.ts:22:21
1402
+
1403
+
1404
+ Test Suites: 1 failed, 4 passed, 5 total
1405
+ Tests: 6 passed, 6 total
1406
+ Snapshots: 0 total
1407
+ Time: 45.012 s
1408
+ Ran all test suites.