Add unit tests for AMQP dissector (#806)

* Add unit tests for AMQP dissector

* Always use UTC as the timezone in the timestamps

* Remove the dead code

* Remove more dead code

* Fix `dissector.Analyze` call

Co-authored-by: gadotroee <55343099+gadotroee@users.noreply.github.com>
This commit is contained in:
M. Mert Yıldıran
2022-02-16 12:07:37 +03:00
committed by GitHub
parent 83722f1a02
commit e8d2b7eb3c
11 changed files with 358 additions and 1932 deletions

View File

@@ -140,7 +140,7 @@ func readTimestamp(r io.Reader) (v time.Time, err error) {
if err = binary.Read(r, binary.BigEndian, &sec); err != nil {
return
}
return time.Unix(sec, 0), nil
return time.Unix(sec, 0).UTC(), nil
}
/*