testTotpReplay test failure

Created on 16 July 2023, over 1 year ago

Problem/Motivation

There is a test failure in testTotpReplay:

fail: [Other] Line 275 of sites/all/modules/tfa_basic/tests/tfa_basic.test:
"My account" found

See: https://www.drupal.org/pift-ci-job/2717439 β†’

Steps to reproduce

Run tests.

Proposed resolution

Check and fix the failing test. The failure can be caused by fast tests execution when the REQUEST_TIME is still same as the $accepted_expiration. Check if adding a sleep(1) would help.

db_delete('tfa_accepted_code')
    ->condition('time_accepted', REQUEST_TIME - $accepted_expiration, '<')
    ->execute();

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia poker10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024