remove console.log from tests

This commit is contained in:
Brian Gough 2019-11-15 09:34:13 +00:00
parent 82a72c9b73
commit 08ee58abb8

View file

@ -127,7 +127,6 @@ describe "Setting a document", ->
@newLines = [] @newLines = []
while JSON.stringify(@newLines).length < Settings.max_doc_length + 64 * 1024 while JSON.stringify(@newLines).length < Settings.max_doc_length + 64 * 1024
@newLines.push("(a long line of text)".repeat(10000)) @newLines.push("(a long line of text)".repeat(10000))
console.log("newlines size",JSON.stringify(@newLines).length)
DocUpdaterClient.setDocLines @project_id, @doc_id, @newLines, @source, @user_id, false, (error, res, body) => DocUpdaterClient.setDocLines @project_id, @doc_id, @newLines, @source, @user_id, false, (error, res, body) =>
@statusCode = res.statusCode @statusCode = res.statusCode
setTimeout done, 200 setTimeout done, 200
@ -159,7 +158,6 @@ describe "Setting a document", ->
while JSON.stringify(@newLines).length < 2 * 1024 * 1024 # limit in HTTPController while JSON.stringify(@newLines).length < 2 * 1024 * 1024 # limit in HTTPController
@newLines.push("(a long line of text)".repeat(10000)) @newLines.push("(a long line of text)".repeat(10000))
@newLines.pop() # remove the line which took it over the limit @newLines.pop() # remove the line which took it over the limit
console.log("newlines size",JSON.stringify(@newLines).length)
DocUpdaterClient.setDocLines @project_id, @doc_id, @newLines, @source, @user_id, false, (error, res, body) => DocUpdaterClient.setDocLines @project_id, @doc_id, @newLines, @source, @user_id, false, (error, res, body) =>
@statusCode = res.statusCode @statusCode = res.statusCode
setTimeout done, 200 setTimeout done, 200