Skip to content

Commit

Permalink
Fix test14_FollowingAttachments unit test failed on iOS 11
Browse files Browse the repository at this point in the history
Updated the digest value as the GZIP on iOS11 is different from the previous version of the OS.
  • Loading branch information
pasin committed Oct 5, 2017
1 parent 7cb9929 commit 8570271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Unit-Tests/DatabaseAttachment_Tests.m
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ - (void) test14_FollowingAttachments {
@"expandAttachments failed: status %d", status);
AssertEqualish(expandedRev[@"_attachments"],
$dict({@"attach", $dict({@"content_type", @"text/plain"},
{@"digest", @"sha1-xow/vyonQ4VegLAEKRwLSFfVqNs="},
{@"digest", @"sha1-OXRSfNeXJL/IKZ6fgOj8ROdLFuQ="},
{@"length", @(12288)},
{@"revpos", @1},
{@"follows", @YES})}));
Expand All @@ -484,7 +484,7 @@ - (void) test14_FollowingAttachments {
NSString* base64 = [CBLBase64 encode: zipped];
AssertEqualish(expandedRev[@"_attachments"],
$dict({@"attach", $dict({@"content_type", @"text/plain"},
{@"digest", @"sha1-xow/vyonQ4VegLAEKRwLSFfVqNs="},
{@"digest", @"sha1-OXRSfNeXJL/IKZ6fgOj8ROdLFuQ="},
{@"length", @(12288)},
{@"encoding", @"gzip"},
{@"encoded_length", @61},
Expand Down

0 comments on commit 8570271

Please sign in to comment.