Permalink
Browse files

Fix compilesite test for multiple threads (closes #93)

  • Loading branch information...
1 parent 3108d55 commit a07077f4737754757e99c2d42267f432289ffd13 @judofyr judofyr committed Jun 24, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/tilt_compilesite_test.rb
@@ -39,7 +39,7 @@ class Scope
locals = { "local#{i}" => 'value' }
res = template.render(self, locals)
thread_id = Thread.current.object_id
- res = template.render(self, "local#{thread_id.to_s}" => 'value')
+ res = template.render(self, "local#{thread_id.abs.to_s}" => 'value')
rescue => boom
main_thread.raise(boom)
end

3 comments on commit a07077f

@rkh
Collaborator
rkh commented on a07077f Jun 25, 2011

Could you elaborate on why you have to do that?

@judofyr
Collaborator

object_ids can be negative, but e.g. "locale-123" isn't a valid local variable.

@rkh
Collaborator
rkh commented on a07077f Jun 25, 2011

oh, right.

Please sign in to comment.