We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While adding tests for the named* feature runnned into the race condition in tests.
named
go test -v ./... -count 10
can end up as...
go test -v ./... -count 10 | grep TestGenerateTests/Entire_testdata_directory -A20 -B20 === RUN TestGenerateTests/Entire_testdata_directory fatal error: concurrent map read and map write
go test -v ./... -count 10 | grep TestGenerateTests/Entire_testdata_directory -A20 -B20 === RUN TestGenerateTests/Entire_testdata_directory gotests_test.go:846: "Entire testdata directory". GenerateTests(testdata/) error = output.Process: render.Header: template: no template "header" associated with template "render", wantErr false --- FAIL: TestGenerateTests/Entire_testdata_directory (0.76s) --------------------------------------------------------------- === RUN TestGenerateTests/Entire_testdata_directory gotests_test.go:846: "Entire testdata directory". GenerateTests(testdata/) error = output.Process: render.TestFunction: template: no template "function" associated with template "render", wantErr false --- FAIL: TestGenerateTests/Entire_testdata_directory (0.64s) --------------------------------------------------------------- === RUN TestGenerateTests/Entire_testdata_directory --- PASS: TestGenerateTests/Entire_testdata_directory (2.49s) --------------------------------------------------------------- === RUN TestGenerateTests/Entire_testdata_directory gotests_test.go:846: "Entire testdata directory". GenerateTests(testdata/) error = output.Process: render.TestFunction: template: no template "function" associated with template "render", wantErr false --- FAIL: TestGenerateTests/Entire_testdata_directory (0.32s) --------------------------------------------------------------- === RUN TestGenerateTests/Entire_testdata_directory gotests_test.go:846: "Entire testdata directory". GenerateTests(testdata/) error = output.Process: render.TestFunction: template: no template "function" associated with template "render", wantErr false --- FAIL: TestGenerateTests/Entire_testdata_directory (0.36s) --------------------------------------------------------------- === RUN TestGenerateTests/Entire_testdata_directory gotests_test.go:846: "Entire testdata directory". GenerateTests(testdata/) error = output.Process: render.Header: template: no template "header" associated with template "render", wantErr false --- FAIL: TestGenerateTests/Entire_testdata_directory (0.37s) --------------------------------------------------------------- === RUN TestGenerateTests/Entire_testdata_directory gotests_test.go:846: "Entire testdata directory". GenerateTests(testdata/) error = output.Process: render.Header: template: no template "header" associated with template "render", wantErr false --- FAIL: TestGenerateTests/Entire_testdata_directory (0.72s) --------------------------------------------------------------- === RUN TestGenerateTests/Entire_testdata_directory gotests_test.go:846: "Entire testdata directory". GenerateTests(testdata/) error = output.Process: render.Header: template: no template "header" associated with template "render", wantErr false --- FAIL: TestGenerateTests/Entire_testdata_directory (0.98s) --------------------------------------------------------------- === RUN TestGenerateTests/Entire_testdata_directory gotests_test.go:846: "Entire testdata directory". GenerateTests(testdata/) error = output.Process: render.Header: template: no template "header" associated with template "render", wantErr false --- FAIL: TestGenerateTests/Entire_testdata_directory (0.69s) --------------------------------------------------------------- === RUN TestGenerateTests/Entire_testdata_directory gotests_test.go:846: "Entire testdata directory". GenerateTests(testdata/) error = output.Process: render.TestFunction: template: render:65:15: executing "function" at <{{template "results" $f}}>: template "results" not defined, wantErr false --- FAIL: TestGenerateTests/Entire_testdata_directory (1.08s)
Both happen for different reasons. #151 will fix the second part but not the first one.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
While adding tests for the
named
* feature runnned into the race condition in tests.go test -v ./... -count 10
can end up as...
Both happen for different reasons. #151 will fix the second part but not the first one.
The text was updated successfully, but these errors were encountered: