Skip to content

server_test.go panic #27

Description

@dmorn

I end up here I just forked, cloned and run go test a couple of times. It looks like a message got logged after the test function returned.

styx % go test ./...
PASS
panic: Log in goroutine after TestRootQid has completed

goroutine 251 [running]:
testing.(*common).logDepth(0xc000130600, 0xc000016f40, 0x1b, 0x3)
	/usr/local/Cellar/go/1.15/libexec/src/testing/testing.go:738 +0x59f
testing.(*common).log(...)
	/usr/local/Cellar/go/1.15/libexec/src/testing/testing.go:720
testing.(*common).Logf(0xc000130600, 0x122355b, 0x19, 0xc000049630, 0x1, 0x1)
	/usr/local/Cellar/go/1.15/libexec/src/testing/testing.go:766 +0x7e
aqwari.net/net/styx.testLogger.Printf(0xc000130600, 0x122355b, 0x19, 0xc000049630, 0x1, 0x1)
	/Users/danielmorandini/src/aqwari.net/net/styx/server_test.go:30 +0x5f
aqwari.net/net/styx.(*Server).logf(...)
	/Users/danielmorandini/src/aqwari.net/net/styx/server.go:200
aqwari.net/net/styx.(*conn).serve(0xc000401140)
	/Users/danielmorandini/src/aqwari.net/net/styx/conn.go:193 +0x218
created by aqwari.net/net/styx.(*Server).Serve
	/Users/danielmorandini/src/aqwari.net/net/styx/server.go:134 +0x3a5
FAIL	aqwari.net/net/styx	0.021s
?   	aqwari.net/net/styx/internal/netutil	[no test files]
ok  	aqwari.net/net/styx/internal/pool	(cached)
ok  	aqwari.net/net/styx/internal/qidpool	(cached)
ok  	aqwari.net/net/styx/internal/styxfile	(cached)
?   	aqwari.net/net/styx/internal/sys	[no test files]
ok  	aqwari.net/net/styx/internal/threadsafe	(cached)
ok  	aqwari.net/net/styx/internal/tracing	(cached) [no tests to run]
ok  	aqwari.net/net/styx/internal/util	(cached) [no tests to run]
?   	aqwari.net/net/styx/styxauth	[no test files]
ok  	aqwari.net/net/styx/styxproto	(cached)
FAIL

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions