cern-fts / davix

High-performance file management over WebDAV / HTTP
GNU Lesser General Public License v2.1
85 stars 36 forks source link

1 test fails, and several tests hang #108

Open yurivict opened 1 year ago

yurivict commented 1 year ago

The failing test:

      Start  2: slow-unit-tests
 2/10 Test  #2: slow-unit-tests .............................................................................***Failed    3.02 sec
Running main() from gtest_main.cc
[==========] Running 10 tests from 3 test cases.
[----------] Global test environment set-up.
[----------] 2 tests from DrunkServer
[ RUN      ] DrunkServer.NoClients
[       OK ] DrunkServer.NoClients (1000 ms)
[ RUN      ] DrunkServer.ClientInteraction
/usr/ports/www/davix/work/davix-R_0_8_5/test/slow-unit/drunk-server.cpp:37: Failure
Value of: connSrv
  Actual: false
Expected: true
[  FAILED  ] DrunkServer.ClientInteraction (1001 ms)
[----------] 2 tests from DrunkServer (2001 ms total)

[----------] 4 tests from Standalone_Neon_Request
[ RUN      ] Standalone_Neon_Request.BasicSanity
/usr/ports/www/davix/work/davix-R_0_8_5/test/slow-unit/standalone-request.cpp:66: Failure
Value of: request->startRequest().ok()
  Actual: false
Expected: true
[  FAILED  ] Standalone_Neon_Request.BasicSanity (2 ms)
[ RUN      ] Standalone_Neon_Request.Redirect
/usr/ports/www/davix/work/davix-R_0_8_5/test/slow-unit/standalone-request.cpp:173: Failure
Value of: request->startRequest().ok()
  Actual: false
Expected: true
[  FAILED  ] Standalone_Neon_Request.Redirect (0 ms)
[ RUN      ] Standalone_Neon_Request.NetworkError
/usr/ports/www/davix/work/davix-R_0_8_5/test/slow-unit/standalone-request.cpp:257: Failure
Value of: "(Neon): Could not read status line: connection was closed by server"
Expected: st.getErrorMessage()
Which is: "Could not connect to server"
[  FAILED  ] Standalone_Neon_Request.NetworkError (1 ms)
[ RUN      ] Standalone_Neon_Request.StopNoStart
[       OK ] Standalone_Neon_Request.StopNoStart (0 ms)
[----------] 4 tests from Standalone_Neon_Request (3 ms total)

[----------] 4 tests from Standalone_Curl_Request
[ RUN      ] Standalone_Curl_Request.BasicSanity
CONSUMED: GET /chickens HTTP/1.1

CONSUMED: Host: localhost:22222

CONSUMED: Accept: */*

CONSUMED: I like: Turtles

WRITING RESPONSE
Response written successfully
[       OK ] Standalone_Curl_Request.BasicSanity (1005 ms)
[ RUN      ] Standalone_Curl_Request.Redirect
CONSUMED: GET /test HTTP/1.1

CONSUMED: Host: localhost:22222

CONSUMED: Accept: */*

CONSUMED: User-Agent: libdavix/0.8.5 libcurl/8.2.1

WRITING RESPONSE
Response written successfully
[       OK ] Standalone_Curl_Request.Redirect (1 ms)
[ RUN      ] Standalone_Curl_Request.NetworkError
[       OK ] Standalone_Curl_Request.NetworkError (0 ms)
[ RUN      ] Standalone_Curl_Request.StopNoStart
[       OK ] Standalone_Curl_Request.StopNoStart (0 ms)
[----------] 4 tests from Standalone_Curl_Request (1006 ms total)

[----------] Global test environment tear-down
[==========] 10 tests from 3 test cases ran. (3010 ms total)
[  PASSED  ] 6 tests.
[  FAILED  ] 4 tests, listed below:
[  FAILED  ] DrunkServer.ClientInteraction
[  FAILED  ] Standalone_Neon_Request.BasicSanity
[  FAILED  ] Standalone_Neon_Request.Redirect
[  FAILED  ] Standalone_Neon_Request.NetworkError

 4 FAILED TESTS

The several next tests hang.

Version: 0_8_5 FreeBSD 13.2