Skip to content
This repository has been archived by the owner on Feb 27, 2023. It is now read-only.

Test failed: http_util_test.go:95: HTTPUtilTestSuite.TestGet #1543

Open
timmyyuan opened this issue May 10, 2021 · 0 comments
Open

Test failed: http_util_test.go:95: HTTPUtilTestSuite.TestGet #1543

timmyyuan opened this issue May 10, 2021 · 0 comments

Comments

@timmyyuan
Copy link

timmyyuan commented May 10, 2021

Ⅰ. Issue Description

unit tests failed

Ⅱ. Describe what happened

I tried to run unit tests but the tests failed:

----------------------------------------------------------------------
FAIL: http_util_test.go:95: HTTPUtilTestSuite.TestGet

http_util_test.go:100:
    c.Assert(e, check.NotNil)
... value = nil

bytes=0-65575
bytes=2-2
bytes=2-
bytes=-100
bytes=0-66575
bytes=0-65-575
make: *** [Makefile:109: unit-test] Error 1
bytes=0-hello
bytes=65575-0
bytes=-1-8
OOPS: 9 passed, 1 FAILED
--- FAIL: Test (0.60s)
FAIL
coverage: 69.9% of statements
FAIL	github.com/dragonflyoss/Dragonfly/pkg/httputils	0.633s
FAIL

Ⅲ. Describe what you expected to happen

The tests should pass

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

  1. checkout v1.0.6
  2. make unit-test

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • dragonfly version: v1.0.6
  • 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