Skip to content

Fix flaky APIKeyTest test_invalidate_by_id #3298

@simitt

Description

@simitt

Looks like there is a new flaky test showing up:

Build and Test / System and Environment Tests / test_apikey.APIKeyTest.test_invalidate_by_id (from nosetests)

Error Message

{u'invalidated_api_keys': [], u'error_count': 0}

Stacktrace

Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/go/src/github.com/elastic/apm-server/tests/system/test_apikey.py", line 90, in test_invalidate_by_id
    assert invalidated.get("invalidated_api_keys") == [apikey["id"]], invalidated
AssertionError: {u'invalidated_api_keys': [], u'error_count': 0}

Metadata

Metadata

Assignees

Labels

flaky testUnstable or unreliable test cases.test

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions