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

Test failure on Golang 1.21 #14

Open
eclipseo opened this issue Jul 19, 2023 · 0 comments
Open

Test failure on Golang 1.21 #14

eclipseo opened this issue Jul 19, 2023 · 0 comments

Comments

@eclipseo
Copy link

Hi,

I have the following test failure :

  • golang-iij-dpf 0.9.1
  • golang 1.21rc3
  • Fedora Linux Rawhide.
Running Suite: api package test suite
=====================================
Random Seed: 1689790252
Will run 213 of 213 specs

••••••••••••
------------------------------
• Failure [0.000 seconds]
logger
/builddir/build/BUILD/golang-iij-dpf-0.9.1/_build/src/github.com/mimuret/golang-iij-dpf/pkg/api/logger_test.go:14
  StdLogger
  /builddir/build/BUILD/golang-iij-dpf-0.9.1/_build/src/github.com/mimuret/golang-iij-dpf/pkg/api/logger_test.go:15
    NewStdLogger
    /builddir/build/BUILD/golang-iij-dpf-0.9.1/_build/src/github.com/mimuret/golang-iij-dpf/pkg/api/logger_test.go:24
      when default value
      /builddir/build/BUILD/golang-iij-dpf-0.9.1/_build/src/github.com/mimuret/golang-iij-dpf/pkg/api/logger_test.go:25
        io.Writer is os.Stderr [It]
        /builddir/build/BUILD/golang-iij-dpf-0.9.1/_build/src/github.com/mimuret/golang-iij-dpf/pkg/api/logger_test.go:29

        Expected
            <*log.Logger | 0xc0004a8840>: {
                outMu: {state: 0, sema: 0},
                out: <*os.File | 0xc000070038>{
                    file: {
                        pfd: {
                            fdmu: {state: 0, rsema: 0, wsema: 0},
                            Sysfd: 2,
                            SysFile: {iovecs: nil},
                            pd: {runtimeCtx: 0x0},
                            csema: 0,
                            isBlocking: 1,
                            IsStream: true,
                            ZeroReadIsEOF: true,
                            isFile: true,
                        },
                        name: "/dev/stderr",
                        dirinfo: nil,
                        nonblock: false,
                        stdoutOrErr: true,
                        appendMode: false,
                    },
                },
                prefix: {
                    _: [],
                    _: {},
                    v: (unsafe.Pointer)(0xc00026c5e0),
                },
                flag: {_: {}, v: 0},
                isDiscard: {_: {}, v: 0},
            }
        to equal
            <*log.Logger | 0xc0004a8870>: {
                outMu: {state: 0, sema: 0},
                out: <*os.File | 0xc000070038>{
                    file: {
                        pfd: {
                            fdmu: {state: 0, rsema: 0, wsema: 0},
                            Sysfd: 2,
                            SysFile: {iovecs: nil},
                            pd: {runtimeCtx: 0x0},
                            csema: 0,
                            isBlocking: 1,
                            IsStream: true,
                            ZeroReadIsEOF: true,
                            isFile: true,
                        },
                        name: "/dev/stderr",
                        dirinfo: nil,
                        nonblock: false,
                        stdoutOrErr: true,
                        appendMode: false,
                    },
                },
                prefix: {
                    _: [],
                    _: {},
                    v: (unsafe.Pointer)(0xc00026c650),
                },
                flag: {_: {}, v: 0},
                isDiscard: {_: {}, v: 0},
            }

        /builddir/build/BUILD/golang-iij-dpf-0.9.1/_build/src/github.com/mimuret/golang-iij-dpf/pkg/api/logger_test.go:30
------------------------------
••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••••

Summarizing 1 Failure:

[Fail] logger StdLogger NewStdLogger when default value [It] io.Writer is os.Stderr 
/builddir/build/BUILD/golang-iij-dpf-0.9.1/_build/src/github.com/mimuret/golang-iij-dpf/pkg/api/logger_test.go:30

Ran 213 of 213 Specs in 13.010 seconds
FAIL! -- 212 Passed | 1 Failed | 0 Pending | 0 Skipped
--- FAIL: TestGinkgo (13.05s)

Not sure which of the TestGinkgo is failing since there are multiple.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant