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

Unit tests failed: HTTPSuite.SetUpTest #1556

@timmyyuan

Description

@timmyyuan

Ⅰ. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions