[PR #456] [MERGED] Fix race condition in unit test #15394

Closed
opened 2025-11-02 11:45:34 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/456
Author: @ethantkoenig
Created: 12/23/2016
Status: Merged
Merged: 12/23/2016
Merged by: @lunny

Base: masterHead: fix/tests


📝 Commits (1)

  • 82b3d11 Fix race condition in unit test

📊 Changes

1 file changed (+7 additions, -2 deletions)

View changed files

📝 modules/base/tool_test.go (+7 -2)

📄 Description

The chardet's encoding detection has a race condition when there are multiple encodings with equally-good matches. This occasionally caused a test that I added in #442 to fail.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/456 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 12/23/2016 **Status:** ✅ Merged **Merged:** 12/23/2016 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `fix/tests` --- ### 📝 Commits (1) - [`82b3d11`](https://github.com/go-gitea/gitea/commit/82b3d1106af7c7d9f24ad300c6db9cecf7e3e96b) Fix race condition in unit test ### 📊 Changes **1 file changed** (+7 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `modules/base/tool_test.go` (+7 -2) </details> ### 📄 Description The `chardet`'s encoding detection has a race condition when there are multiple encodings with equally-good matches. This occasionally caused a test that I added in #442 to fail. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:45:34 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15394