Re-enable repository tests (#2451)

## Description

The load tests (`repository_load_test.go`) overrides the default [TestMain](https://medium.com/goingogo/why-use-testmain-for-testing-in-go-dafb52b406bc).

This results in the other tests in the repository_test package not running.

The fix is to move the load tests into a sub-package

## Does this PR need a docs update or release note?

- [ ]  Yes, it's included
- [ ] 🕐 Yes, but in a later PR
- [x]  No 

## Type of change

<!--- Please check the type of change your PR introduces: --->
- [ ] 🌻 Feature
- [ ] 🐛 Bugfix
- [ ] 🗺️ Documentation
- [x] 🤖 Test
- [ ] 💻 CI/Deployment
- [ ] 🧹 Tech Debt/Cleanup

## Test Plan

<!-- How will this be tested prior to merging.-->
- [ ] 💪 Manual
- [ ]  Unit test
- [x] 💚 E2E
This commit is contained in:
Vaibhav Kamra 2023-02-08 17:55:30 -08:00 committed by GitHub
parent 924d345ace
commit a440aa9a34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

View File

@ -74,4 +74,4 @@ load-test:
-mutexprofile=mutex.prof \ -mutexprofile=mutex.prof \
-trace=trace.out \ -trace=trace.out \
-outputdir=test_results \ -outputdir=test_results \
./pkg/repository/repository_load_test.go ./pkg/repository/loadtest/repository_load_test.go