xmtpd icon indicating copy to clipboard operation
xmtpd copied to clipboard

TestCreateServer is flaky in GH CI

Open mkysel opened this issue 1 year ago • 0 comments

https://github.com/xmtp/xmtpd/actions/runs/11128614185/job/30923756881?pr=182

=== RUN   TestCreateServer
2024-10-01T15:33:09.606Z	INFO	server/server.go:96	Replication server started	{"port": 0}
2024-10-01T15:33:09.606Z	INFO	api	api/server.go:95	serving grpc	{"address": "[::]:43099"}
2024-10-01T15:33:09.610Z	INFO	server/server.go:96	Replication server started	{"port": 0}
2024-10-01T15:33:09.610Z	INFO	api	api/server.go:95	serving grpc	{"address": "[::]:[377](https://github.com/xmtp/xmtpd/actions/runs/11128614185/job/30923756881?pr=182#step:7:378)69"}
2024-10-01T15:33:09.667Z	ERROR	db/subscription.go:91	Error querying for DB subscription: failed to connect to `user=postgres database=test_dvqaoictdikq`: 127.0.0.1:8765 (localhost): server error: FATAL: database "test_dvqaoictdikq" does not exist (SQLSTATE 3D000)	{"method": "publishWorker", "lastSeen": 0, "numRows": 100}
github.com/xmtp/xmtpd/pkg/db.(*DBSubscription[...]).poll
	/home/runner/work/xmtpd/xmtpd/pkg/db/subscription.go:91
github.com/xmtp/xmtpd/pkg/db.(*DBSubscription[...]).Start.func1
	/home/runner/work/xmtpd/xmtpd/pkg/db/subscription.go:63
--- PASS: TestCreateServer (0.29s)

The test passes regardless which is weird.

mkysel avatar Oct 01 '24 15:10 mkysel