Added parallel to some missing tests

This commit is contained in:
Patrick O'brien 2016-08-18 22:29:14 +10:00
parent 22a904d025
commit 3cdfc6237a
5 changed files with 11 additions and 1 deletions

View file

@ -32,6 +32,8 @@ func TestSQLColDefinitions(t *testing.T) {
}
func TestTypes(t *testing.T) {
t.Parallel()
defs := SQLColumnDefs{
{Type: "thing1"},
{Type: "thing2"},
@ -47,6 +49,8 @@ func TestTypes(t *testing.T) {
}
func TestNames(t *testing.T) {
t.Parallel()
defs := SQLColumnDefs{
{Name: "thing1"},
{Name: "thing2"},

View file

@ -1 +0,0 @@
package boil

View file

@ -358,6 +358,7 @@ func TestBindPtrs_Ignore(t *testing.T) {
func TestGetStructValues(t *testing.T) {
t.Parallel()
timeThing := time.Now()
o := struct {
TitleThing string

View file

@ -55,6 +55,8 @@ func TestImportsSort(t *testing.T) {
}
func TestCombineTypeImports(t *testing.T) {
t.Parallel()
imports1 := imports{
standard: importList{
`"errors"`,

View file

@ -20,6 +20,8 @@ func nopCloser(w io.Writer) io.WriteCloser {
}
func TestOutHandler(t *testing.T) {
// t.Parallel() cannot be used
// set the function pointer back to its original value
// after we modify it for the test
saveTestHarnessFileOpen := testHarnessFileOpen
@ -44,6 +46,8 @@ func TestOutHandler(t *testing.T) {
}
func TestOutHandlerFiles(t *testing.T) {
// t.Parallel() cannot be used
saveTestHarnessFileOpen := testHarnessFileOpen
defer func() {
testHarnessFileOpen = saveTestHarnessFileOpen