Fix duplicate UnmarshalJSON func for SyncData #9576
Annotations
11 errors and 1 warning
Annotate Failures:
rest/blip_api_crud_test.go#L2783
blip_api_crud_test.go:2783:
Error Trace: D:/a/sync_gateway/sync_gateway/rest/blip_api_crud_test.go:2783
D:/a/sync_gateway/sync_gateway/rest/blip_client_test.go:615
Error: Not equal:
expected: "{\"channel\":[\"PBS\"]}"
actual : "{\"_removed\":true}"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-{"channel":["PBS"]}
+{"_removed":true}
Test: TestRequestPlusPull/revTree
2024-04-08T14:23:01.498Z
|
Annotate Failures:
rest/blip_api_crud_test.go#L2199
blip_api_crud_test.go:2199:
Error Trace: D:/a/sync_gateway/sync_gateway/rest/blip_api_crud_test.go:2199
D:/a/sync_gateway/sync_gateway/rest/blip_client_test.go:615
Error: "[[3 doc 2-be1091a5021df5c6d45011885d89fc96 4] [5 docmarker 1-7b361410bb628fcc490f1df46ddd0efa]]" should have 1 item(s), but has 2
Test: TestRemovedMessageWithAlternateAccessAndChannelFilteredReplication/revTree
2024-04-08T14:23:02.030Z
|
Annotate Failures:
revocation_test.go#L2004
revocation_test.go:2004:
Error Trace: D:/a/sync_gateway/sync_gateway/rest/revocation_test.go:2004
Error: Received unexpected error:
expecting 1 changes, got 0
Test: TestReplicatorRevocationsWithChannelFilter
---
|
Annotate Failures:
rest/changes_api_test.go#L2219
changes_api_test.go:2219:
Error Trace: D:/a/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:2219
Error: Received unexpected error:
Unexpected empty JSON input to body.Unmarshal
Test: TestChangesIncludeDocs
|
Annotate Failures:
rest/changes_api_test.go#L2219
changes_api_test.go:2219:
Error Trace: D:/a/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:2219
Error: Received unexpected error:
Unexpected empty JSON input to body.Unmarshal
Test: TestChangesIncludeDocs
|
Annotate Failures:
rest/changes_api_test.go#L1961
changes_api_test.go:1961:
Error Trace: D:/a/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:1961
Error: Received unexpected error:
unexpected end of JSON input
Test: TestOneShotChangesWithExplicitDocIds
|
Annotate Failures:
rest/changes_api_test.go#L1962
changes_api_test.go:1962:
Error Trace: D:/a/sync_gateway/sync_gateway/rest/changestest/changes_api_test.go:1962
Error: Not equal:
expected: string("docD")
actual : <nil>(<nil>)
Test: TestOneShotChangesWithExplicitDocIds
2024-04-08T14:23:28.246Z
|
Annotate Failures:
rest/replicator_test.go#L5391
replicator_test.go:5391:
Error Trace: D:/a/sync_gateway/sync_gateway/rest/replicatortest/replicator_test.go:5391
Error: Received unexpected error:
expecting 2 changes, got 1
Test: TestActiveReplicatorIgnoreNoConflicts
2024-04-08T14:23:59.944Z
|
Annotate Failures:
revocation_test.go#L1798
revocation_test.go:1798:
Error Trace: D:/a/sync_gateway/sync_gateway/rest/revocation_test.go:1798
Error: Received unexpected error:
expecting 5 changes, got 0
Test: TestReplicatorRevocationsMultipleAlternateAccess
2024-04-08T14:24:02.456Z
|
Annotate Failures:
database_test.go#L586
database_test.go:586:
Error Trace: D:/a/sync_gateway/sync_gateway/db/database_test.go:586
Error: Not equal:
expected: db.Body{"_id":"doc1", "_rev":"2-98b0e58dd5e3d2c23bbcec36458559f1", "_revisions":db.Revisions{"ids":[]string{"98b0e58dd5e3d2c23bbcec36458559f1", "f8fd91d4024e824690d5dd4f20ffbf1c"}, "start":2}, "channels":[]string{"ABC"}, "k2":"v2"}
actual : db.Body{"_id":"doc1", "_removed":true, "_rev":"2-98b0e58dd5e3d2c23bbcec36458559f1", "_revisions":db.Revisions{"ids":[]string{"98b0e58dd5e3d2c23bbcec36458559f1", "f8fd91d4024e824690d5dd4f20ffbf1c"}, "start":2}}
Diff:
--- Expected
+++ Actual
@@ -1,3 +1,4 @@
-(db.Body) (len=5) {
+(db.Body) (len=4) {
(string) (len=3) "_id": (string) (len=4) "doc1",
+ (string) (len=8) "_removed": (bool) true,
(string) (len=4) "_rev": (string) (len=34) "2-98b0e58dd5e3d2c23bbcec36458559f1",
@@ -9,7 +10,3 @@
(string) (len=5) "start": (int) 2
- },
- (string) (len=8) "channels": ([]string) (len=1) {
- (string) (len=3) "ABC"
- },
- (string) (len=2) "k2": (string) (len=2) "v2"
+ }
}
Test: TestGetRemovalMultiChannel
---
|
Run Tests
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: guyarb/[email protected]. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading