Commit 85740ac
authored
test_filter_record_transformer: pass a Time object to Timecop.freeze (#5077)
**Which issue(s) this PR fixes**:
Fixes #5041
**What this PR does / why we need it**:
I'm investigating #5041
When run the `RecordTransformerFilterTest`,
it handles incorrect timestamps.
Reproduce:
```ruby
@time = event_time('2010-05-04 03:02:01 UTC')
Timecop.freeze(@time)
logger = Logger.new(STDOUT)
p logger.info("Test::RecordTransformerFilterTest setup")
```
Result:
```
I, [1272942121-01-01T00:00:00.000000 #12576] INFO -- : Test::RecordTransformerFilterTest setup
```
We should pass Time object into `Timecop.freeze`
**Docs Changes**:
Not needed
**Release Note**:
CI fixes
---------
Signed-off-by: Shizuo Fujita <[email protected]>1 parent 308b336 commit 85740ac
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments