mirror of https://github.com/coder/coder.git
29 lines
1.7 KiB
Plaintext
29 lines
1.7 KiB
Plaintext
{
|
|
"packages": [
|
|
{
|
|
"name": "test",
|
|
"time": 1.007,
|
|
"fail": true,
|
|
"num_failed": 2,
|
|
"timeout": true,
|
|
"output": "panic: test timed out after 1s\nrunning tests:\n\tTestHello (1s)\n\tTestWorld (1s)\n\ngoroutine 17 [running]:\ntesting.(*M).startAlarm.func1()\n\t/home/mafredri/sdk/go1.20rc1/src/testing/testing.go:2240 +0x3b9\ncreated by time.goFunc\n\t/home/mafredri/sdk/go1.20rc1/src/time/sleep.go:176 +0x32\n\ngoroutine 1 [chan receive]:\ntesting.tRunner.func1()\n\t/home/mafredri/sdk/go1.20rc1/src/testing/testing.go:1541 +0x4a5\ntesting.tRunner(0xc000007ba0, 0xc00025fc88)\n\t/home/mafredri/sdk/go1.20rc1/src/testing/testing.go:1581 +0x144\ntesting.runTests(0xc000110500?, {0x739320, 0x2, 0x2}, {0x0?, 0x100c00010f098?, 0x743080?})\n\t/home/mafredri/sdk/go1.20rc1/src/testing/testing.go:2033 +0x489\ntesting.(*M).Run(0xc000110500)\n\t/home/mafredri/sdk/go1.20rc1/src/testing/testing.go:1905 +0x63a\nmain.main()\n\t_testmain.go:49 +0x1aa\n\ngoroutine 7 [sleep]:\ntime.Sleep(0x77359400)\n\t/home/mafredri/sdk/go1.20rc1/src/runtime/time.go:195 +0x135\ngithub.com/coder/coder/test.TestWorld(0xc0002801a0)\n\t/home/mafredri/src/mafredri/test/main_test.go:16 +0x28\ntesting.tRunner(0xc0002801a0, 0x607348)\n\t/home/mafredri/sdk/go1.20rc1/src/testing/testing.go:1575 +0x10b\ncreated by testing.(*T).Run\n\t/home/mafredri/sdk/go1.20rc1/src/testing/testing.go:1628 +0x3ea\n"
|
|
}
|
|
],
|
|
"tests": [
|
|
{
|
|
"package": "test",
|
|
"name": "TestHello",
|
|
"time": 1,
|
|
"timeout": true
|
|
},
|
|
{
|
|
"package": "test",
|
|
"name": "TestWorld",
|
|
"time": 0,
|
|
"fail": true,
|
|
"timeout": true,
|
|
"output": "=== RUN TestWorld\n=== PAUSE TestWorld\n=== CONT TestWorld\n"
|
|
}
|
|
]
|
|
}
|