https://github.com/lemonnekogh/go-test-dependency-cached-failed
https://github.com/lemonnekogh/go-test-dependency-cached-failed
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/lemonnekogh/go-test-dependency-cached-failed
- Owner: LemonNekoGH
- Created: 2023-01-05T04:19:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-01-05T04:26:32.000Z (over 2 years ago)
- Last Synced: 2025-03-24T22:02:23.261Z (4 months ago)
- Language: Go
- Size: 1000 Bytes
- Stars: 0
- Watchers: 2
- 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.