Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/exp/slog: TestLogTextHandler fails due to malformed regexp #55055

Closed
toothrot opened this issue Sep 13, 2022 · 1 comment
Closed

x/exp/slog: TestLogTextHandler fails due to malformed regexp #55055

toothrot opened this issue Sep 13, 2022 · 1 comment
Assignees
Milestone

Comments

@toothrot
Copy link
Contributor

toothrot commented Sep 13, 2022

--- FAIL: TestLogTextHandler (0.00s)
    logger_test.go:34: 
        got  time=2022-09-09T14:52:49.575Z level=INFO msg=msg a=1 b=2
        want ^time=\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}-\d{2}:\d{2} level=INFO msg=msg a=1 b=2$
    logger_test.go:37: 
        got  time=2022-09-09T14:52:49.575Z level=DEBUG msg=bg a=1 b=2
        want ^time=\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}-\d{2}:\d{2} level=DEBUG msg=bg a=1 b=2$
    logger_test.go:40: 
        got  time=2022-09-09T14:52:49.575Z level=WARN msg=w dur=3s
        want ^time=\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}-\d{2}:\d{2} level=WARN msg=w dur=3s$
    logger_test.go:43: 
        got  time=2022-09-09T14:52:49.575Z level=ERROR msg=bad a=1 err=EOF
        want ^time=\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}-\d{2}:\d{2} level=ERROR msg=bad a=1 err=EOF$
    logger_test.go:46: 
        got  time=2022-09-09T14:52:49.575Z level=WARN-1 msg=w a=1 b=two
        want ^time=\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}-\d{2}:\d{2} level=WARN-1 msg=w a=1 b=two$
    logger_test.go:49: 
        got  time=2022-09-09T14:52:49.575Z level=INFO-1 msg="a b c" a=1 b=two
        want ^time=\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}-\d{2}:\d{2} level=INFO-1 msg="a b c" a=1 b=two$
--- FAIL: TestConnections (0.00s)
    logger_test.go:66: 
        got  time=2022-09-09T14:52:49.575Z level=INFO msg=msg2
        want ^time=\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}-\d{2}:\d{2} level=INFO msg=msg2$
FAIL
FAIL	golang.org/x/exp/slog	0.022s

2022-09-09T14:51:30-3746e55-218294f/linux-amd64

@bcmills
Copy link
Contributor

bcmills commented Sep 14, 2022

I believe this was fixed in CL 429836.

@bcmills bcmills closed this as completed Sep 14, 2022
@golang golang locked and limited conversation to collaborators Sep 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants