openresty / openresty/lua-resty-core

Random test failures in t/stream/os-getenv-hup.t

Open
#316 1 comment 0 reactions 1 assignee View on GitHub

@thibaultcha is already working on this.

Since Oct 8, 2020.

Dominant language
Lua
Stars
853
Forks
286
Avg merge
35m
Merged PRs (30d)
1

Description

I'm seeing the following random test failures on Fedora x86_64:

t/stream/os-getenv-hup.t ........... 1/13
#   Failed test 'TEST 2: HUP reload changes env value (1/3) - response_body - response is expected (repeated req 0, req 0)'
#   at /home/agentzh/git/lua-resty-core.orig/../test-nginx/lib/Test/Nginx/Socket.pm line 1594.
#          got: "old\x{0a}"
#       length: 4
#     expected: "new\x{0a}"
#       length: 4
#     strings begin to differ at char 1 (line 1 column 1)
t/stream/os-getenv-hup.t ........... 10/13
#   Failed test 'TEST 5: HUP reload changes visible environment variable (1/2) - response_body - response is expected (repeated req 0, req 0)'
#   at /home/agentzh/git/lua-resty-core.orig/../test-nginx/lib/Test/Nginx/Socket.pm line 1594.
#          got: "nil\x{0a}"
#       length: 4
#     expected: "old\x{0a}"
#       length: 4
#     strings begin to differ at char 1 (line 1 column 1)

#   Failed test 'TEST 6: HUP reload changes visible environment variable (2/2) - response_body - response is expected (repeated req 0, req 0)'
#   at /home/agentzh/git/lua-resty-core.orig/../test-nginx/lib/Test/Nginx/Socket.pm line 1594.
#          got: "old\x{0a}"
#       length: 4
#     expected: "new\x{0a}"
#       length: 4
#     strings begin to differ at char 1 (line 1 column 1)
# Looks like you failed 3 tests of 13.
t/stream/os-getenv-hup.t ........... Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/13 subtests

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.