Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.