Skip to content

Commit bf29194

Browse files
committed
Give more leeway to resposne time
1 parent 946c550 commit bf29194

6 files changed

Lines changed: 21 additions & 14 deletions

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## 0.9.0
4+
5+
- Add support for Rails 7.0, 7.1, 7.2, and 8.0
6+
- Fix deprecation warning for `ActiveRecord::LogSubscriber.runtime` in Rails 7.1+
7+
- Update development dependencies
8+
- Update gems and CI
9+
310
## 0.8.0
411

512
- Update license to MIT [#19](https://github.com/nullscreen/epilog/pull/19)

lib/epilog/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
module Epilog
4-
VERSION = '0.8.0'
4+
VERSION = '0.9.0'
55

66
def self.version
77
Gem::Version.new(VERSION)

spec/rails/action_controller_subscriber_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def params(values)
5656
metrics: {
5757
db_runtime: 0.0,
5858
view_runtime: be_within(10).of(10),
59-
request_runtime: be_between(0, 20)
59+
request_runtime: be_between(0, 40)
6060
}
6161
)
6262
expect(Rails.logger[3][4]).to eq([context])
@@ -69,7 +69,7 @@ def params(values)
6969
expect(Rails.logger[1][3]).to match(
7070
message: 'Unpermitted parameters: foo',
7171
metrics: {
72-
duration: be_between(0, 20)
72+
duration: be_between(0, 40)
7373
}
7474
)
7575
end
@@ -110,7 +110,7 @@ def params(values)
110110
expect(Rails.logger[1][3]).to match(
111111
message: 'Redirect > https://www.google.com',
112112
metrics: {
113-
duration: be_between(0, 20)
113+
duration: be_between(0, 40)
114114
}
115115
)
116116
end
@@ -126,7 +126,7 @@ def params(values)
126126
expect(Rails.logger[2][3]).to match(
127127
message: 'Sent data test.txt',
128128
metrics: {
129-
duration: be_between(0, 20)
129+
duration: be_between(0, 40)
130130
}
131131
)
132132
end
@@ -142,7 +142,7 @@ def params(values)
142142
expect(Rails.logger[1][3]).to match(
143143
message: "Sent file #{filename}",
144144
metrics: {
145-
duration: be_between(0, 20)
145+
duration: be_between(0, 40)
146146
}
147147
)
148148
end
@@ -179,14 +179,14 @@ def params(values)
179179
expect(logs[0][3]).to match(
180180
message: start_with('read_fragment views/'),
181181
metrics: {
182-
duration: be_between(0, 20)
182+
duration: be_between(0, 40)
183183
}
184184
)
185185

186186
expect(logs[1][3]).to match(
187187
message: start_with('write_fragment views/'),
188188
metrics: {
189-
duration: be_between(0, 20)
189+
duration: be_between(0, 40)
190190
}
191191
)
192192
end

spec/rails/action_mailer_subscriber_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
recipients: ['user@example.com'],
2323
body: include('My mail message!'),
2424
metrics: {
25-
duration: be_between(0, 20)
25+
duration: be_between(0, 40)
2626
}
2727
)
2828
end
@@ -39,7 +39,7 @@
3939
message: 'Received mail',
4040
body: include('test mail'),
4141
metrics: {
42-
duration: be_between(0, 20)
42+
duration: be_between(0, 40)
4343
}
4444
)
4545
end

spec/rails/action_view_subscriber_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def compiled_method_container
2424
layout: nil,
2525
template: 'action_view/template.html.erb',
2626
metrics: {
27-
duration: be_between(0, 20)
27+
duration: be_between(0, 40)
2828
}
2929
)
3030
end
@@ -38,7 +38,7 @@ def compiled_method_container
3838
layout: nil,
3939
template: 'action_view/_partial.html.erb',
4040
metrics: {
41-
duration: be_between(0, 20)
41+
duration: be_between(0, 40)
4242
}
4343
)
4444
end
@@ -52,7 +52,7 @@ def compiled_method_container
5252
layout: nil,
5353
template: 'action_view/_collection.html.erb',
5454
metrics: {
55-
duration: be_between(0, 20)
55+
duration: be_between(0, 40)
5656
}
5757
)
5858
end

spec/rails/active_record_subscriber_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
sql: query,
2222
binds:,
2323
metrics: {
24-
query_runtime: be_between(0, 20)
24+
query_runtime: be_between(0, 40)
2525
}
2626
)
2727
end

0 commit comments

Comments
 (0)