Przeglądaj źródła

remove console.log from tests

Brian Gough 7 lat temu
rodzic
commit
08ee58abb8

+ 0 - 2
services/document-updater/test/acceptance/coffee/SettingADocumentTests.coffee

@@ -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