Closed jaypipes closed 2 days ago
After bringing in gdt@v1.9.1, I'm seeing different behaviour but still get the panic:
[gdt] [happy-path] using timeout of 5s [plugin default]
[gdt] [happy-path/0:create-cluster] kube.create: kubernetesclusters (ns: nc-system)
[gdt] [happy-path/0:create-cluster] run: single-shot (no retries) ok: true
[gdt] [happy-path] wait: 10m before
panic: test timed out after 10m0s
running tests:
TestKubernetesClusterHappyPath (10m0s)
TestKubernetesClusterHappyPath/happy-path (10m0s)
goroutine 114 [running]:
testing.(*M).startAlarm.func1()
/usr/local/go/src/testing/testing.go:2366 +0x385
created by time.goFunc
/usr/local/go/src/time/sleep.go:177 +0x2d
goroutine 1 [chan receive, 10 minutes]:
testing.(*T).Run(0xc000130340, {0x1693113?, 0x0?}, 0x17640d0)
/usr/local/go/src/testing/testing.go:1750 +0x3ab
testing.runTests.func1(0xc000130340)
/usr/local/go/src/testing/testing.go:2161 +0x37
testing.tRunner(0xc000130340, 0xc0004d3c70)
/usr/local/go/src/testing/testing.go:1689 +0xfb
testing.runTests(0xc000484138, {0x2393b50, 0x1, 0x1}, {0x1?, 0x514d4e?, 0x23bc320?})
/usr/local/go/src/testing/testing.go:2159 +0x445
testing.(*M).Run(0xc000129900)
/usr/local/go/src/testing/testing.go:2027 +0x68b
main.main()
_testmain.go:47 +0x16c
goroutine 58 [chan receive, 10 minutes]:
testing.(*T).Run(0xc0001304e0, {0xc00047a180?, 0x167d42b?}, 0xc00015dad0)
/usr/local/go/src/testing/testing.go:1750 +0x3ab
github.com/gdt-dev/gdt/scenario.(*Scenario).Run(0xc000160090, {0x18c9908, 0xc0004a3e90}, 0xc0001304e0)
/home/azureuser/go/pkg/mod/github.com/gdt-dev/gdt@v1.9.1/scenario/run.go:66 +0x547
github.com/gdt-dev/gdt/suite.(*Suite).Run(0x18c9908?, {0x18c9908, 0xc0004a3e90}, 0xc0001304e0)
/home/azureuser/go/pkg/mod/github.com/gdt-dev/gdt@v1.9.1/suite/run.go:15 +0x6a
command-line-arguments_test.TestKubernetesClusterHappyPath(0xc0001304e0)
/home/azureuser/src/dev.azure.com/msazuredev/AzureForOperatorsIndustry/nc-aks/test/func/kubernetes_cluster_test.go:27 +0x195
testing.tRunner(0xc0001304e0, 0x17640d0)
/usr/local/go/src/testing/testing.go:1689 +0xfb
created by testing.(*T).Run in goroutine 1
/usr/local/go/src/testing/testing.go:1742 +0x390
goroutine 68 [sleep, 10 minutes]:
time.Sleep(0x8bb2c97000)
/usr/local/go/src/runtime/time.go:195 +0x115
github.com/gdt-dev/gdt/scenario.(*Scenario).Run.func1(0xc00027a1a0)
/home/azureuser/go/pkg/mod/github.com/gdt-dev/gdt@v1.9.1/scenario/run.go:76 +0x20a
testing.tRunner(0xc00027a1a0, 0xc00015dad0)
/usr/local/go/src/testing/testing.go:1689 +0xfb
created by testing.(*T).Run in goroutine 58
/usr/local/go/src/testing/testing.go:1742 +0x390
FAIL command-line-arguments 600.115s
FAIL
sigh.. turns out 10 minutes is Go's test tool standard timeout :(
We should catch the panic that occurs when timeouts happen: