Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Unit tests failed: HTTPSuite.SetUpTest #1556

Open
timmyyuan opened this issue Aug 3, 2021 · 0 comments
Open

Unit tests failed: HTTPSuite.SetUpTest #1556

timmyyuan opened this issue Aug 3, 2021 · 0 comments

Comments

@timmyyuan
Copy link

Ⅰ. Issue Description

unit tests failed

Ⅱ. Describe what happened

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

Ⅲ. Describe what you expected to happen

The tests should pass

Ⅳ. How to reproduce it (as minimally and precisely as possible)

  1. checkout the master branch
  2. make unit-test

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • dragonfly version: the master branch (d2a749a)
  • OS (e.g. from /etc/os-release): ubuntu 20.04
  • Kernel (e.g. 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant