Merge pull request #713 from niaow/dont-log-100000-times

Stop logging in TestStartupInvalidLength
This commit is contained in:
Nia 2020-08-21 17:29:52 -04:00 committed by GitHub
commit 842377ba17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ func TestStartupInvalidLength(t *testing.T) {
res := testing.Benchmark(func(b *testing.B) {
connect, shutdown, err := pgtest.ServeMem(&pg.Server{
MaxStartupSize: 1024,
Logger: logger.NewLogfLogger(t),
Logger: logger.NopLogger,
})
if err != nil {
t.Fatalf("starting in-memory postgres server: %v", err)