Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lemonnekogh/go-test-dependency-cached-failed
https://github.com/lemonnekogh/go-test-dependency-cached-failed
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lemonnekogh/go-test-dependency-cached-failed
- Owner: LemonNekoGH
- Created: 2023-01-05T04:19:37.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-05T04:26:32.000Z (almost 2 years ago)
- Last Synced: 2024-10-26T22:53:01.044Z (about 2 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Failed because cache
Try to run test singly.
```bash
go test -run ^TestA$ gotestdependencycachedfailed && go test -run ^TestB$ gotestdependencycachedfailed
```
You will see both test passed.
Try to run all test in one process.
```bash
$ go test .
```
You will see the test failed.
Try to remove comment in `go-test-dependency-cached-failed_test.go`
```diff
- 15 // aCached = []int{}
+ 15 aCached = []int{}
```
And run again, test passed.