summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2016-07-14 08:51:24 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2016-07-14 08:51:24 -0400
commitf070dd1fe27fa811778348475044cb1f14b3f0ef (patch)
treef45f8e607b5e7e9ef7f9de60bb58962063d51b75
parent5b9801ac3600441f70d167e69b27942263ad8f83 (diff)
downloadmongo-f070dd1fe27fa811778348475044cb1f14b3f0ef.tar.gz
SERVER-24965 Change test to expect UnknownError if collection truncated.
We'd normally expect CappedPositionLost in this scenario, but a bug in the 3.0 branch prevents the status member object from being propagated back to the client.
-rwxr-xr-xjstests/replsets/resync.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/jstests/replsets/resync.js b/jstests/replsets/resync.js
index 49eb570a318..085ffb0f954 100755
--- a/jstests/replsets/resync.js
+++ b/jstests/replsets/resync.js
@@ -47,8 +47,10 @@
catch (except) {
// An error is expected in the case that capped deletions blow away the position of the
// collection scan during a yield. In this case, we just try again.
- var errorRegex = /CappedPositionLost/;
- assert(errorRegex.test(except.message));
+ var errorRegex = /UnknownError/;
+ assert(errorRegex.test(except.message),
+ "Reading from the oplog returned an error other than UnknownError: " +
+ except.message);
return hasCycled();
}
}