Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

summary_avg_time': undefined method sum' for #<Array:0x000000020f8280> (NoMethodError) #1

Open
srikanthjeeva opened this issue Jan 5, 2019 · 1 comment

Comments

@srikanthjeeva
Copy link

srikanthjeeva commented Jan 5, 2019

Getting this error when running the example

require 'gas_load_tester'

simple_test = GasLoadTester::Test.new({client: 100, time: 5})
simple_test.run(output: true, file_name: '/load_test/results/ui_100') do
  RestClient.get("http://someurl.com", {})
end
/homes/.rvm/gems/ruby-2.3.1/gems/gas_load_tester-1.0.13/lib/gas_load_tester/test.rb:74:in `summary_avg_time': undefined method `sum' for #<Array:0x000000020f8280> (NoMethodError)
	from /homes/.rvm/gems/ruby-2.3.1/gems/gas_load_tester-1.0.13/lib/gas_load_tester/chart_builder.rb:169:in `build_summary'
	from /homes/.rvm/gems/ruby-2.3.1/gems/gas_load_tester-1.0.13/lib/gas_load_tester/chart_builder.rb:160:in `build_sum_test'
	from /homes/.rvm/gems/ruby-2.3.1/gems/gas_load_tester-1.0.13/lib/gas_load_tester/chart_builder.rb:47:in `build_body'
	from /homes/.rvm/gems/ruby-2.3.1/gems/gas_load_tester-1.0.13/lib/gas_load_tester/test.rb:61:in `export_file'
	from /homes/.rvm/gems/ruby-2.3.1/gems/gas_load_tester-1.0.13/lib/gas_load_tester/test.rb:43:in `run'
	from load_test.rb:4:in `<main>'

@ktzoulas
Copy link

Raised pull request to fix this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@srikanthjeeva @ktzoulas and others