 			auth: () ->
 			exec: sinon.stub()
 		@rclient.multi = () => @rclient
+		tk.freeze(new Date())
 		@RedisManager = SandboxedModule.require modulePath,
 			requires:
 				"logger-sharelatex": @logger = { error: sinon.stub(), log: sinon.stub(), warn: sinon.stub() }

				"./Errors": Errors
			globals:
				JSON: @JSON = JSON
		
		@doc_id = "doc-id-123"
		@project_id = "project-id-123"


		describe "with a consistent version", ->
			beforeEach ->
				@RedisManager.getDocVersion.withArgs(@doc_id).yields(null, @version - @ops.length)
				@RedisManager.updateDocument @doc_id, @lines, @version, @ops, @ranges, @callback
		
			it "should get the current doc version to check for consistency", ->
				@RedisManager.getDocVersion
