Skip Menu |

This queue is for tickets about the Plack-Middleware-DoCoMoGUID CPAN distribution.

Report information
The Basics
Id: 117771
Status: new
Priority: 0/
Queue: Plack-Middleware-DoCoMoGUID

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.06
Fixed in: (no value)



Subject: Hash randomization issue in tests
Some of the test files (e.g. t/01_redirect_filter.t) fail randomly: # Failed test 'guid=ON should set' # at t/01_redirect_filter.t line 69. # got: 'http://localhost/hello?fugo=haga&hoge=fuga&guid=ON&foo=bar' # expected: 'http://localhost/hello?guid=ON&hoge=fuga&fugo=haga&foo=bar' # Failed test 'should not append guid=ON' # at t/01_redirect_filter.t line 75. # got: 'http://localhost/hello?fugo=haga&hoge=fuga&foo=bar&guid=FOO' # expected: 'http://localhost/hello?hoge=fuga&fugo=haga&foo=bar&guid=FOO' # Looks like you failed 2 tests of 4. # Failed test 'do filter case with extra params' # at t/01_redirect_filter.t line 81. # Looks like you failed 1 test of 3. # Failed test 'DoCoMoGUID::RedirectFilter' # at t/01_redirect_filter.t line 111. # Failed test 'guid=ON should set' # at t/01_redirect_filter.t line 69. # got: 'http://localhost/hello?hoge=fuga&fugo=haga&guid=ON&foo=bar' # expected: 'http://localhost/hello?guid=ON&hoge=fuga&fugo=haga&foo=bar' # Looks like you failed 1 test of 4. # Failed test 'do filter case with extra params' # at t/01_redirect_filter.t line 81. # Looks like you failed 1 test of 3. # Failed test 'DoCoMoGUID' # at t/01_redirect_filter.t line 111. # Looks like you failed 2 tests of 2. t/01_redirect_filter.t .... Dubious, test returned 2 (wstat 512, 0x200) Failed 2/2 subtests Probably this is caused by hash randomization.
On 2016-09-11 03:05:48, SREZIC wrote: Show quoted text
> Some of the test files (e.g. t/01_redirect_filter.t) fail randomly: > > # Failed test 'guid=ON should set' > # at t/01_redirect_filter.t line 69. > # got: > 'http://localhost/hello?fugo=haga&hoge=fuga&guid=ON&foo=bar' > # expected: > 'http://localhost/hello?guid=ON&hoge=fuga&fugo=haga&foo=bar' > > # Failed test 'should not append guid=ON' > # at t/01_redirect_filter.t line 75. > # got: > 'http://localhost/hello?fugo=haga&hoge=fuga&foo=bar&guid=FOO' > # expected: > 'http://localhost/hello?hoge=fuga&fugo=haga&foo=bar&guid=FOO' > # Looks like you failed 2 tests of 4. > > # Failed test 'do filter case with extra params' > # at t/01_redirect_filter.t line 81. > # Looks like you failed 1 test of 3. > > # Failed test 'DoCoMoGUID::RedirectFilter' > # at t/01_redirect_filter.t line 111. > > # Failed test 'guid=ON should set' > # at t/01_redirect_filter.t line 69. > # got: > 'http://localhost/hello?hoge=fuga&fugo=haga&guid=ON&foo=bar' > # expected: > 'http://localhost/hello?guid=ON&hoge=fuga&fugo=haga&foo=bar' > # Looks like you failed 1 test of 4. > > # Failed test 'do filter case with extra params' > # at t/01_redirect_filter.t line 81. > # Looks like you failed 1 test of 3. > > # Failed test 'DoCoMoGUID' > # at t/01_redirect_filter.t line 111. > # Looks like you failed 2 tests of 2. > t/01_redirect_filter.t .... > Dubious, test returned 2 (wstat 512, 0x200) > Failed 2/2 subtests > > > Probably this is caused by hash randomization.
The dependency HTML-StickyQuery-DoCoMoGUID also has problems with hash randomization, see https://rt.cpan.org/Ticket/Display.html?id=81633