Skip to content

Commit

Permalink
fix tests by using UTC time
Browse files Browse the repository at this point in the history
  • Loading branch information
lwlee2608 committed Dec 3, 2023
1 parent dc09a21 commit 93ef3e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diam/pretty_dump_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ func TestPrettyDumpAVP(t *testing.T) {
NewAVP(avp.PSInformation, avp.Mbit, 10415, &GroupedAVP{
AVP: []*AVP{
NewAVP(avp.CalledStationID, avp.Mbit, 0, datatype.UTF8String("10999")),
NewAVP(avp.StartTime, 0, 10415, datatype.Time(time.Unix(1377093974, 0))),
NewAVP(avp.StartTime, 0, 10415, datatype.Time(time.Date(2023, 8, 21, 22, 06, 14, 0, time.UTC))),
},
}),
}}),
expected: strings.Join([]string{
" Service-Information 10415 873 ✓ ✓ ✗ Grouped",
" PS-Information 10415 874 ✓ ✓ ✗ Grouped",
" Called-Station-Id 0 30 ✗ ✓ ✗ UTF8String 10999",
" Start-Time 10415 2041 ✓ ✗ ✗ Time 2013-08-21 22:06:14 +0800 +08",
" Start-Time 10415 2041 ✓ ✗ ✗ Time 2023-08-21 22:06:14 +0000 UTC",
}, "\n"),
},
}
Expand Down

0 comments on commit 93ef3e9

Please sign in to comment.