Skip to content

Instantly share code, notes, and snippets.

@clayg
Created May 20, 2015 22:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clayg/6cc8df2687e700d85d09 to your computer and use it in GitHub Desktop.
Save clayg/6cc8df2687e700d85d09 to your computer and use it in GitHub Desktop.
vagrant@hummingbird:~/swift/go$ make test
go vet ./...
go test -cover ./...
? _/home/vagrant/swift/go/bench [no test files]
? _/home/vagrant/swift/go/cmd [no test files]
ok _/home/vagrant/swift/go/hummingbird 0.175s coverage: 53.2% of statements
--- FAIL: TestFinalLog (0.00s)
Location: auditor_test.go:378
Error: Not equal: "Object audit (ALL) \"forever\" mode completed: 60.00s. Total quarantined: 5, Total errors: 3, Total files/sec: 2.00, Total bytes/sec: 2000.00, Auditing time: 0.00, Rate: 0.00" (expected)
!= "Object audit (ALL) \"forever\" mode completed: 60.00s. Total quarantined: 5, Total errors: 3, Total files/sec: 2.00, Total bytes/sec: 1999.97, Auditing time: 0.00, Rate: 0.00" (actual)
FAIL
coverage: 67.7% of statements
FAIL _/home/vagrant/swift/go/objectserver 1.204s
ok _/home/vagrant/swift/go/probe 0.299s coverage: 91.8% of statements
--- FAIL: TestHealthCheck (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x20 pc=0x46a2ac]
goroutine 6 [running]:
testing.func·006()
/usr/local/go/src/testing/testing.go:441 +0x181
_/home/vagrant/swift/go/proxyserver.TestHealthCheck(0xc2080661b0)
/home/vagrant/swift/go/proxyserver/main_test.go:38 +0x4ac
testing.tRunner(0xc2080661b0, 0x907480)
/usr/local/go/src/testing/testing.go:447 +0xbf
created by testing.RunTests
/usr/local/go/src/testing/testing.go:555 +0xa8b
goroutine 1 [chan receive]:
testing.RunTests(0x808640, 0x907480, 0x2, 0x2, 0x792301)
/usr/local/go/src/testing/testing.go:556 +0xad6
testing.(*M).Run(0xc2080525f0, 0x9163c0)
/usr/local/go/src/testing/testing.go:485 +0x6c
main.main()
_/home/vagrant/swift/go/proxyserver/_test/_testmain.go:100 +0x291
goroutine 5 [syscall]:
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init·1
/usr/local/go/src/os/signal/signal_unix.go:27 +0x35
FAIL _/home/vagrant/swift/go/proxyserver 0.011s
make: *** [test] Error 1
vagrant@hummingbird:~/swift/go$ echo $?
2
vagrant@hummingbird:~/swift/go$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment