Fix the post building test breaking everything.

This commit is contained in:
ccd0 2016-04-28 09:35:00 -07:00
parent 482426499c
commit ef844ccd73
2 changed files with 4 additions and 3 deletions

View File

@ -42,7 +42,7 @@ Build.Test =
root = Build.post obj
t2 = new Date().getTime()
Build.Test.time += t2 - t1
post2 = new Post root, post.thread, post.board
post2 = new Post root, post.thread, post.board, 'forBuildTest'
fail = false
x = post.normalizedOriginal
@ -71,8 +71,6 @@ Build.Test =
c.log "#{post.fullID} correct"
Build.Test.postsRemaining--
Build.Test.report() if Build.Test.postsRemaining is 0
post2.isFetchedQuote = true
Main.callbackNodes 'Post', [post2]
testAll: ->
g.posts.forEach (post) ->

View File

@ -102,6 +102,9 @@ class Post
@isHidden = false
@clones = []
<% if (readJSON('/.tests_enabled')) { %>
return if arguments[3] is 'forBuildTest'
<% } %>
if g.posts[@fullID]
@isRebuilt = true
@clones = g.posts[@fullID].clones