Skip to content

[bug]: Token service test failures #31

Description

@lstein

Is there an existing issue for this problem?

  • I have searched the existing issues

Install method

Invoke's Launcher

Operating system

Linux

GPU vendor

Nvidia (CUDA)

GPU model

No response

GPU VRAM

No response

Version number

lstein-master HEAD

Browser

No response

System Information

No response

What happened

Two unit tests in tests/app/services/auth/test_token_service.py are intermittently failing:

  1. test_verify_token_with_modified_payload()
  2. test_token_signature_verification()

Here is the short test summary info. The full error log is attached.

=========================== short test summary info ============================
206
FAILED tests/app/services/auth/test_token_service.py::TestTokenVerification::test_verify_token_with_modified_payload - AssertionError: assert TokenData(user_id='user123', email='test@example.com', is_admin=False) is None
207
FAILED tests/app/services/auth/test_token_service.py::TestTokenSecurity::test_token_signature_verification - AssertionError: assert TokenData(user_id='user123', email='test@example.com', is_admin=False) is None
208
 +  where TokenData(user_id='user123', email='test@example.com', is_admin=False) = verify_token('***')
209
= 2 failed, 783 passed, 102 skipped, 4 deselected, 8 warnings in 206.16s (0:03:26) =
210
Error: Process completed with exit code 1.

test.txt

What you expected to happen

I expect the auth unit tests to succeed.

How to reproduce the problem

No response

Additional context

No response

Discord username

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions