Skip to content

Cluster_test.go panics for nginx deployment #14

@ppxl

Description

@ppxl

Originally the test worked out but somehow the nginx deployment no longer works and panics.

The main reason is most probably that something goes wrong during the nginx deployment.

Please fix 😃

--- FAIL: TestIntegration (80.34s)
panic: runtime error: index out of range [0] with length 0 [recovered]
	panic: runtime error: index out of range [0] with length 0

goroutine 84 [running]:
testing.tRunner.func1.2({0x1a18980, 0xc0040b8f00})
	/home/myhome/.gvm/gos/go1.21.1/src/testing/testing.go:1545 +0x238
testing.tRunner.func1()
	/home/myhome/.gvm/gos/go1.21.1/src/testing/testing.go:1548 +0x397
panic({0x1a18980?, 0xc0040b8f00?})
	/home/myhome/.gvm/gos/go1.21.1/src/runtime/panic.go:914 +0x21f
github.com/test-clusters/testclusters-go/pkg/cluster_test.TestIntegration(0xc000500d00)
	/home/myhome/projekte/privat/testclusters-go/pkg/cluster/cluster_test.go:49 +0x626
testing.tRunner(0xc000500d00, 0x1c43c90)
	/home/myhome/.gvm/gos/go1.21.1/src/testing/testing.go:1595 +0xff
created by testing.(*T).Run in goroutine 1
	/home/myhome/.gvm/gos/go1.21.1/src/testing/testing.go:1648 +0x3ad

That would be this line, podList is definitely empty.

	events, err := cl.Lookout(t).Pod(cluster.DefaultNamespace, podList.Items[0].Name).Events(ctx)

This also didn't workout with a time-out of two minutes ⏳

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions