Skip to content

Commit

Permalink
Made the randomizer do a bit more work
Browse files Browse the repository at this point in the history
  • Loading branch information
josephg committed Jul 8, 2011
1 parent 5dd9f0b commit ebab5c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/helpers/randomizer.coffee
Expand Up @@ -15,7 +15,7 @@ testRandomOp = (type, initialDoc = type.initialVersion()) ->
server = makeDoc()
client = makeDoc()

for [0..(randomReal() * 2 + 1)]
for [0...4]
doc = if randomReal() < 0.5 then client else server
[op, doc.result] = type.generateRandomOp doc.result
doc.ops.push(op)
Expand Down Expand Up @@ -107,5 +107,5 @@ exports.test = (type, iterations = 300) ->

doc = type.initialVersion()
for n in [0..iterations]
# p n if n % 200 == 0
p n if n % 200 == 0
doc = testRandomOp(type, doc)

0 comments on commit ebab5c6

Please sign in to comment.