Skip to content

Commit

Permalink
Improved an error check in a test
Browse files Browse the repository at this point in the history
  • Loading branch information
snej committed Oct 3, 2024
1 parent cac9a6e commit bd4c39b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Replicator/tests/ReplicatorLoopbackTest.hh
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,7 @@ class ReplicatorLoopbackTest
CHECK((createReplicatorThrew || _gotResponse));
CHECK((createReplicatorThrew || _statusChangedCalls > 0));
CHECK(_statusReceived.level == kC4Stopped);
CHECK(_statusReceived.error.code == _expectedError.code);
if ( _expectedError.code ) CHECK(_statusReceived.error.domain == _expectedError.domain);
CHECK(_statusReceived.error == _expectedError);
if ( !(_ignoreLackOfDocErrors && _docPullErrors.empty()) )
CHECK(asVector(_docPullErrors) == asVector(_expectedDocPullErrors));
if ( !(_ignoreLackOfDocErrors && _docPushErrors.empty()) )
Expand Down

0 comments on commit bd4c39b

Please sign in to comment.