Skip to content

Commit bb583bd

Browse files
Richard Pijnenburgjordansissel
authored andcommitted
Fix performance tests
- date speed test only run when performance is enabled Fixes #1758
1 parent 1274034 commit bb583bd

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

spec/performance/date.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
require "test_utils"
1+
require "spec_helper"
22
require "logstash/filters/date"
33

44
puts "Skipping date tests because this ruby is not jruby" if RUBY_ENGINE != "jruby"
5-
describe LogStash::Filters::Date, :if => RUBY_ENGINE == "jruby" do
6-
extend LogStash::RSpec
5+
describe LogStash::Filters::Date, :if => RUBY_ENGINE == "jruby", :performance => true do
6+
77

8-
describe "speed test of date parsing", :performance => true do
8+
describe "speed test of date parsing" do
99
it "should be fast" do
1010
event_count = 100000
1111
min_rate = 4000

spec/performance/speed.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
require "test_utils"
1+
require "spec_helper"
22

33
describe "speed tests", :performance => true do
4-
extend LogStash::RSpec
4+
55
count = 1000000
66

77
config <<-CONFIG

0 commit comments

Comments
 (0)