Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Fix broken tests caused by static lookup cache #293

Merged

Conversation

BewareMyPower
Copy link
Collaborator

The tests for different EntryFormatter may fail because LOOKUP_CACHE is a static variable. If two test instances were executed in cross, tests might fail like https://github.com/streamnative/kop/runs/1617432032.

This PR replace TestNG @factory with two different test classes to avoid two KoP instances share the same LOOKUP_CACHE.

@BewareMyPower
Copy link
Collaborator Author

@jiazhai PTAL. The broken tests seems to be caused by the issue that we've discussed before. But it somehow didn't fail in #288 which may introduce the broken tests. From the commit history it started to fail from #267 , which may expose the problem before.

@jiazhai jiazhai merged commit 5a00906 into streamnative:master Dec 30, 2020
@BewareMyPower BewareMyPower deleted the bewaremypower/fix-broken-tests branch December 30, 2020 02:12
@BewareMyPower BewareMyPower mentioned this pull request Jan 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants