diff --git a/bdb/keys_test.go b/bdb/keys_test.go index f015796..b410073 100644 --- a/bdb/keys_test.go +++ b/bdb/keys_test.go @@ -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"}, diff --git a/boil/hooks_test.go b/boil/hooks_test.go deleted file mode 100644 index 8e505d6..0000000 --- a/boil/hooks_test.go +++ /dev/null @@ -1 +0,0 @@ -package boil diff --git a/boil/reflect_test.go b/boil/reflect_test.go index 6409887..b29f4e4 100644 --- a/boil/reflect_test.go +++ b/boil/reflect_test.go @@ -358,6 +358,7 @@ func TestBindPtrs_Ignore(t *testing.T) { func TestGetStructValues(t *testing.T) { t.Parallel() + timeThing := time.Now() o := struct { TitleThing string diff --git a/imports_test.go b/imports_test.go index dcd27cf..79863fa 100644 --- a/imports_test.go +++ b/imports_test.go @@ -55,6 +55,8 @@ func TestImportsSort(t *testing.T) { } func TestCombineTypeImports(t *testing.T) { + t.Parallel() + imports1 := imports{ standard: importList{ `"errors"`, diff --git a/output_test.go b/output_test.go index a19ca6f..eb4f772 100644 --- a/output_test.go +++ b/output_test.go @@ -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