Skip to content

TestProvider panics a couple of times #2113

@Xunzhuo

Description

@Xunzhuo
--- FAIL: TestProvider (11.56s)
    --- FAIL: TestProvider/gatewayclass_with_parameters_ref (0.05s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x2f3d316]

goroutine 616 [running]:
testing.tRunner.func1.2({0x31c3e80, 0x50924e0})
	/opt/hostedtoolcache/go/1.20.10/x64/src/testing/testing.go:1526 +0x372
testing.tRunner.func1()
	/opt/hostedtoolcache/go/1.20.10/x64/src/testing/testing.go:1529 +0x650
panic({0x31c3e80, 0x50924e0})
	/opt/hostedtoolcache/go/1.20.10/x64/src/runtime/panic.go:890 +0x263
github.com/envoyproxy/gateway/internal/provider/kubernetes.testGatewayClassWithParamRef({0x3a7e6c0?, 0xc00063c820}, 0xc00114b1e0, 0xc000f36f40, 0xc0005beb00)
	/home/runner/work/gateway/gateway/internal/provider/kubernetes/kubernetes_test.go:201 +0xa96
github.com/envoyproxy/gateway/internal/provider/kubernetes.TestProvider.func3(0x0?)
	/home/runner/work/gateway/gateway/internal/provider/kubernetes/kubernetes_test.go:80 +0x88
testing.tRunner(0xc00114b1e0, 0xc00128f4a0)
	/opt/hostedtoolcache/go/1.20.10/x64/src/testing/testing.go:1576 +0x217
created by testing.(*T).Run
	/opt/hostedtoolcache/go/1.20.10/x64/src/testing/testing.go:1629 +0x806

Metadata

Metadata

Assignees

Labels

kind/bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions