Open timmyyuan opened 3 years ago
unit tests failed
I tried to run unit tests but the tests failed:
---------------------------------------------------------------------- FAIL: resource_test.go:37: HTTPSuite.SetUpTest resource_test.go:43: c.Assert(err, check.IsNil) ... value *net.OpError = &net.OpError{Op:"listen", Net:"tcp", Source:net.Addr(nil), Addr:(*net.TCPAddr)(0xc000580030), Err:(*os.SyscallError)(0xc000314040)} ("listen tcp :64000: bind: address already in use") ---------------------------------------------------------------------- PANIC: resource_test.go:85: HTTPSuite.TestResource ... Panic: Fixture has panicked (see related PANIC) OOPS: 1 passed, 1 FAILED, 1 MISSED --- FAIL: Test (0.00s) FAIL coverage: 9.6% of statements
The tests should pass
uname -a
$ uname -a Linux vultr.guest 5.4.0-65-generic #73-Ubuntu SMP Mon Jan 18 17:25:17 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Ⅰ. Issue Description
unit tests failed
Ⅱ. Describe what happened
I tried to run unit tests but the tests failed:
Ⅲ. Describe what you expected to happen
The tests should pass
Ⅳ. How to reproduce it (as minimally and precisely as possible)
Ⅴ. Anything else we need to know?
Ⅵ. Environment:
uname -a
):