Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
Parse our timestamp fixture in GMT
Browse files Browse the repository at this point in the history
This will then match our log lines, ensuring Gomega equality will pass.
  • Loading branch information
lawrencejones committed Mar 5, 2019
1 parent 7631ce0 commit 76df498
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/pgreplay/parse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
. "github.com/onsi/gomega"
)

var time20190225, _ = time.Parse(time.RFC3339, "2019-02-25T15:08:27.222+00:00")
var time20190225, _ = time.Parse(PostgresTimestampFormat, "2019-02-25 15:08:27.222 GMT")

var _ = Describe("Parse", func() {
DescribeTable("Parses",
Expand Down Expand Up @@ -38,7 +38,7 @@ var _ = Describe("Parse", func() {
Entry(
"Extended protocol with duration logs",
`
2019-02-25 15:08:27.232 GMT|[unknown]|[unknown]|5c7404eb.d6bd|LOG: connection received: host=127.0.0.1 port=59103
2019-02-25 15:08:27.222 GMT|[unknown]|[unknown]|5c7404eb.d6bd|LOG: connection received: host=127.0.0.1 port=59103
2019-02-25 15:08:27.222 GMT|alice|pgreplay_test|5c7404eb.d6bd|LOG: connection authorized: user=alice database=pgreplay_test
2019-02-25 15:08:27.222 GMT|alice|pgreplay_test|5c7404eb.d6bd|LOG: duration: 0.968 ms parse <unnamed>: select t.oid
2019-02-25 15:08:27.222 GMT|alice|pgreplay_test|5c7404eb.d6bd|LOG: duration: 1.100 ms bind <unnamed>: select t.oid
Expand Down

0 comments on commit 76df498

Please sign in to comment.