Enable race testing in validation
This commit is contained in:
12
validation_test.go
Normal file
12
validation_test.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package releasekit
|
||||
|
||||
import "testing"
|
||||
|
||||
func TestCandidateRequestMapsRaceValidation(t *testing.T) {
|
||||
request := candidateRequest(ReleaseRequest{
|
||||
Validation: ValidationSpec{Go: GoValidationSpec{Race: true}},
|
||||
})
|
||||
if !request.Validation.Race {
|
||||
t.Fatalf("candidate request validation = %#v, want race enabled", request.Validation)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user