]> Cypherpunks.ru repositories - gostls13.git/commit
log/slog: fix faulty test
authorMerrick Clay <merrick.e.clay@gmail.com>
Wed, 5 Jul 2023 21:06:39 +0000 (15:06 -0600)
committerJonathan Amsterdam <jba@google.com>
Thu, 6 Jul 2023 00:01:44 +0000 (00:01 +0000)
commit36ea4f9680f8296f1c7d0cf7dbb1b3a9d572754a
tree04bd9d1b867bbf6c6c2de48109c2c0df7c26956a
parent3fce1115359c4ab7d67fbf4efef1341e52b354b7
log/slog: fix faulty test

Adds an optional close quote in the expected log message regex for TestConnections to prevent failing when the source filepath is surrounded in quotes due to it containing one or more spaces.

Fixes #61161

Change-Id: I0dd71fb4389bff963bbfdc668ef4e4dfe787eafc
Reviewed-on: https://go-review.googlesource.com/c/go/+/508055
Reviewed-by: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/log/slog/logger_test.go