[PR #3141] [MERGED] Fix integration tests #16791

Closed
opened 2025-11-02 12:19:12 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3141
Author: @ethantkoenig
Created: 12/10/2017
Status: Merged
Merged: 12/11/2017
Merged by: @appleboy

Base: masterHead: fix/integration_tests


📝 Commits (1)

📊 Changes

2 files changed (+10 additions, -4 deletions)

View changed files

📝 integrations/integration_test.go (+1 -0)
📝 models/repo.go (+9 -4)

📄 Description

Delete the local repo copy path between integration tests. If we do not do this, the local copy of a repo created in one test will persist in later tests, which can cause tests to break (see https://drone.gitea.io/go-gitea/gitea/2502/9, which failed because of a leftover local copy of a repo created in git_test.go)


🔄 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/3141 **Author:** [@ethantkoenig](https://github.com/ethantkoenig) **Created:** 12/10/2017 **Status:** ✅ Merged **Merged:** 12/11/2017 **Merged by:** [@appleboy](https://github.com/appleboy) **Base:** `master` ← **Head:** `fix/integration_tests` --- ### 📝 Commits (1) - [`10c679d`](https://github.com/go-gitea/gitea/commit/10c679d05618c0f3acd163db3dac4eca754032df) Fix integration tests ### 📊 Changes **2 files changed** (+10 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `integrations/integration_test.go` (+1 -0) 📝 `models/repo.go` (+9 -4) </details> ### 📄 Description Delete the local repo copy path between integration tests. If we do not do this, the local copy of a repo created in one test will persist in later tests, which can cause tests to break (see https://drone.gitea.io/go-gitea/gitea/2502/9, which failed because of a leftover local copy of a repo created in `git_test.go`) --- <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 12:19:12 -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#16791