Fix the post building test breaking everything.
This commit is contained in:
parent
482426499c
commit
ef844ccd73
@ -42,7 +42,7 @@ Build.Test =
|
|||||||
root = Build.post obj
|
root = Build.post obj
|
||||||
t2 = new Date().getTime()
|
t2 = new Date().getTime()
|
||||||
Build.Test.time += t2 - t1
|
Build.Test.time += t2 - t1
|
||||||
post2 = new Post root, post.thread, post.board
|
post2 = new Post root, post.thread, post.board, 'forBuildTest'
|
||||||
fail = false
|
fail = false
|
||||||
|
|
||||||
x = post.normalizedOriginal
|
x = post.normalizedOriginal
|
||||||
@ -71,8 +71,6 @@ Build.Test =
|
|||||||
c.log "#{post.fullID} correct"
|
c.log "#{post.fullID} correct"
|
||||||
Build.Test.postsRemaining--
|
Build.Test.postsRemaining--
|
||||||
Build.Test.report() if Build.Test.postsRemaining is 0
|
Build.Test.report() if Build.Test.postsRemaining is 0
|
||||||
post2.isFetchedQuote = true
|
|
||||||
Main.callbackNodes 'Post', [post2]
|
|
||||||
|
|
||||||
testAll: ->
|
testAll: ->
|
||||||
g.posts.forEach (post) ->
|
g.posts.forEach (post) ->
|
||||||
|
|||||||
@ -102,6 +102,9 @@ class Post
|
|||||||
@isHidden = false
|
@isHidden = false
|
||||||
|
|
||||||
@clones = []
|
@clones = []
|
||||||
|
<% if (readJSON('/.tests_enabled')) { %>
|
||||||
|
return if arguments[3] is 'forBuildTest'
|
||||||
|
<% } %>
|
||||||
if g.posts[@fullID]
|
if g.posts[@fullID]
|
||||||
@isRebuilt = true
|
@isRebuilt = true
|
||||||
@clones = g.posts[@fullID].clones
|
@clones = g.posts[@fullID].clones
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user