Created
August 21, 2012 12:04
-
-
Save markburns/3414935 to your computer and use it in GitHub Desktop.
rspec OutOfMemoryError
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'bundler/setup' | |
Bundler.require(:default) | |
def app | |
proc do |env| | |
[200, { 'Content-Type' => 'text/html' }, 'Hello simple rack application!'] | |
end | |
end | |
require 'rack/test' | |
RSpec.configure do |config| | |
config.include Rack::Test::Methods | |
end | |
describe 'example' do | |
it 'should not run out of memoery' do | |
get '/' | |
last_response.should_not be_nil | |
end | |
it 'should not run out of memoery' do | |
get '/' | |
last_response.should == 'egg' | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
None it seems to hang for more than at least a few minutes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source :rubygems | |
gem 'rack' | |
gem 'rack-test' | |
gem 'rspec', '2.11' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GEM | |
remote: http://rubygems.org/ | |
specs: | |
diff-lcs (1.1.3) | |
rack (1.4.1) | |
rack-test (0.6.1) | |
rack (>= 1.0) | |
rspec (2.11.0) | |
rspec-core (~> 2.11.0) | |
rspec-expectations (~> 2.11.0) | |
rspec-mocks (~> 2.11.0) | |
rspec-core (2.11.1) | |
rspec-expectations (2.11.2) | |
diff-lcs (~> 1.1.3) | |
rspec-mocks (2.11.2) | |
PLATFORMS | |
java | |
ruby | |
DEPENDENCIES | |
rack | |
rack-test | |
rspec (= 2.11) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
example should equal egg | |
Failure/Error: Unable to find matching line from backtrace | |
Java::JavaLang::OutOfMemoryError: | |
Java heap space | |
# org.jruby.RubyArray.realloc(RubyArray.java:369) | |
# org.jruby.RubyArray.append(RubyArray.java:1153) | |
# org.jruby.RubyArray.flatten(RubyArray.java:2804) | |
# org.jruby.RubyArray.flatten19(RubyArray.java:2895) | |
# org.jruby.RubyArray$i$flatten19.call(RubyArray$i$flatten19.gen:65535) | |
# org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:292) | |
# org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:135) | |
# org.jruby.ast.CallNoArgNode.interpret(CallNoArgNode.java:63) | |
# org.jruby.ast.CallNoArgBlockNode.interpret(CallNoArgBlockNode.java:60) | |
# org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) | |
# org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) | |
# org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:233) | |
# org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:215) | |
# org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:332) | |
# org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:203) | |
# org.jruby.ast.FCallTwoArgNode.interpret(FCallTwoArgNode.java:38) | |
# org.jruby.ast.IfNode.interpret(IfNode.java:111) | |
# org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) | |
# org.jruby.ast.IfNode.interpret(IfNode.java:117) | |
# org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) | |
# org.jruby.ast.BlockNode.interpret(BlockNode.java:71) | |
# org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) | |
# org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:276) | |
# org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:231) | |
# org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:352) | |
# org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:237) | |
# org.jruby.ast.CallThreeArgNode.interpret(CallThreeArgNode.java:61) | |
# org.jruby.ast.NewlineNode.interpret(NewlineNode.java:104) | |
# org.jruby.evaluator.ASTInterpreter.INTERPRET_METHOD(ASTInterpreter.java:74) | |
# org.jruby.internal.runtime.methods.InterpretedMethod.call(InterpretedMethod.java:190) | |
# org.jruby.internal.runtime.methods.DefaultMethod.call(DefaultMethod.java:199) | |
# org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:312) | |
Finished in 27.16 seconds | |
1 example, 1 failure |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment