Fixing tests.

This commit is contained in:
Mitar
2016-11-22 16:16:06 -08:00
committed by Jesse Rosenberger
parent 6a2c4db868
commit 0898bc47e6

View File

@@ -977,7 +977,8 @@ _.extend(Connection.prototype, {
// documents.
_saveOriginals: function () {
var self = this;
self._flushBufferedWrites();
if (!self._waitingForQuiescence())
self._flushBufferedWrites();
_.each(self._stores, function (s) {
s.saveOriginals();
});