File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ func TestLogging(t *testing.T) {
27
27
log , err := xlog .New (
28
28
xlog .AsText (),
29
29
xlog .WriteTo (& buf ),
30
- xlog .MockClock (time .Unix (1650000000 , 0 )),
30
+ xlog .MockClock (time .Unix (1650000000 , 0 ). UTC () ),
31
31
)
32
32
require .NoError (t , err )
33
33
@@ -36,7 +36,7 @@ func TestLogging(t *testing.T) {
36
36
require .Equal (t , http .StatusOK , w .Code )
37
37
38
38
assert .Equal (t , strings .Join ([]string {
39
- "time=2022-04-15T07 :20:00.000+02:00 " ,
39
+ "time=2022-04-15T05 :20:00.000Z " ,
40
40
"level=INFO" ,
41
41
`msg=""` ,
42
42
"method=GET" ,
Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ func TestHandleStatus_withFailIO(t *testing.T) {
63
63
log , err := xlog .New (
64
64
xlog .AsText (),
65
65
xlog .WriteTo (& buf ),
66
- xlog .MockClock (time .Unix (1650000000 , 0 )),
66
+ xlog .MockClock (time .Unix (1650000000 , 0 ). UTC () ),
67
67
)
68
68
require .NoError (t , err )
69
69
@@ -85,7 +85,7 @@ func TestHandleStatus_withFailIO(t *testing.T) {
85
85
assert .Equal (t , http .StatusOK , rec .code )
86
86
assert .Equal (t , mimeTypeJSON , rec .h .Get ("Content-Type" ))
87
87
assert .Equal (t , strings .Join ([]string {
88
- "time=2022-04-15T07 :20:00.000+02:00 " ,
88
+ "time=2022-04-15T05 :20:00.000Z " ,
89
89
"level=ERROR" ,
90
90
`msg="failed to write response"` ,
91
91
`error="io: read/write on closed pipe"` ,
You can’t perform that action at this time.
0 commit comments