Skip to content

flaky test TestCommandOutput: panic: list flag redefined: reveal-tokens [recovered, repanicked] #556

@miparnisari

Description

@miparnisari
C:\Users\mparn\Documents\GitHub\zed (main -> origin)
λ go test -race -count=10 ./...
?       github.com/authzed/zed/cmd/zed  [no test files]
ok      github.com/authzed/zed/internal/client  17.343s
--- FAIL: TestCommandOutput (0.00s)
panic: list flag redefined: reveal-tokens [recovered, repanicked]

goroutine 610 [running]:
testing.tRunner.func1.2({0x14477b240, 0xc0040d73e0})
        C:/Users/mparn/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1872 +0x3fc
testing.tRunner.func1()
        C:/Users/mparn/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1875 +0x683
panic({0x14477b240?, 0xc0040d73e0?})
        C:/Users/mparn/go/pkg/mod/golang.org/[email protected]/src/runtime/panic.go:783 +0x132
github.com/spf13/pflag.(*FlagSet).AddFlag(0xc001a06a00, 0xc001117040)
        C:/Users/mparn/go/pkg/mod/github.com/spf13/[email protected]/flag.go:876 +0xa48
github.com/spf13/pflag.(*FlagSet).VarPF(0xc001a06a00, {0x1456ed9c0, 0xc000c94aaf}, {0x144fa5436, 0xd}, {0x0, 0x0}, {0x144fcd9ce, 0x1a})
        C:/Users/mparn/go/pkg/mod/github.com/spf13/[email protected]/flag.go:859 +0x217
github.com/spf13/pflag.(*FlagSet).BoolVarP(0xc001a06a00, 0xc000c94aaf, {0x144fa5436, 0xd}, {0x0, 0x0}, 0x0, {0x144fcd9ce, 0x1a})
        C:/Users/mparn/go/pkg/mod/github.com/spf13/[email protected]/bool.go:55 +0xb2
github.com/spf13/pflag.(*FlagSet).BoolP(...)
        C:/Users/mparn/go/pkg/mod/github.com/spf13/[email protected]/bool.go:80
github.com/spf13/pflag.(*FlagSet).Bool(...)
        C:/Users/mparn/go/pkg/mod/github.com/spf13/[email protected]/bool.go:74
github.com/authzed/zed/internal/cmd.registerContextCmd(0xc0008ac008)
        C:/Users/mparn/Documents/GitHub/zed/internal/cmd/context.go:22 +0x125
github.com/authzed/zed/internal/cmd.InitialiseRootCmd(0xc0017fb640)
        C:/Users/mparn/Documents/GitHub/zed/internal/cmd/cmd.go:115 +0xb7e
github.com/authzed/zed/internal/cmd.TestCommandOutput(0xc000cb3500)
        C:/Users/mparn/Documents/GitHub/zed/internal/cmd/cmd_test.go:63 +0x5f0
testing.tRunner(0xc000cb3500, 0x1451ac0d0)
        C:/Users/mparn/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1934 +0x1c4
created by testing.(*T).Run in goroutine 1
        C:/Users/mparn/go/pkg/mod/golang.org/[email protected]/src/testing/testing.go:1997 +0x9dd
FAIL    github.com/authzed/zed/internal/cmd     35.995s
.... output hidden for more clarity 
C:\Users\mparn\Documents\GitHub\zed (main -> origin)
λ

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions