Skip to content

Commit

Permalink
Parallelize test (#1525)
Browse files Browse the repository at this point in the history
* Refactor test cleanup in driver_test.go

* parallelize TestEmptyQuery and TestCRUD

* parallelize TestNumbersToAny

* parallelize TestInt

* parallelize TestFloat32

* parallelize TestFloat64

* parallelize TestFloat64Placeholder

* parallelize TestString

* parallelize TestRawBytes

* parallelize TestRawMessage

* parallelize TestValuer

* parallelize TestValuerWithValidation

* parallelize TestTimestampMicros

* parallelize TestNULL

* parallelize TestUint64

* parallelize TestLongData

* parallelize TestContextCancelExec

* parallelize TestPingContext

* parallelize TestContextCancelQuery

* parallelize TestContextCancelQueryRow

* Revert "parallelize TestLongData"

This reverts commit a360be7.

* parallelize TestContextCancelPrepare

* parallelize TestContextCancelStmtExec

* parallelize TestContextCancelStmtQuery

* parallelize TestContextCancelBegin

* parallelize TestContextBeginIsolationLevel

* parallelize TestContextBeginReadOnly

* parallelize TestValuerWithValueReceiverGivenNilValue

* parallelize TestRawBytesAreNotModified

* parallelize TestFoundRows

* parallelize TestRowsClose

* parallelize TestCloseStmtBeforeRows

* parallelize TestStmtMultiRows

* Revert "parallelize TestRawBytesAreNotModified"

This reverts commit 91622f0.

* parallelize TestStaleConnectionChecks

* parallelize TestFailingCharset

* parallelize TestColumnsWithAlias

* parallelize TestRawBytesResultExceedsBuffer

* parallelize TestUnixSocketAuthFail

* parallelize TestSkipResults

* Add parallel flag to go test command

* Revert "parallelize TestUnixSocketAuthFail"

This reverts commit b3df7bd.
  • Loading branch information
shogo82148 committed Dec 13, 2023
1 parent d4517c5 commit 0004702
Show file tree
Hide file tree
Showing 3 changed files with 198 additions and 138 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -96,7 +96,7 @@ jobs:
- name: test
run: |
go test -v '-race' '-covermode=atomic' '-coverprofile=coverage.out'
go test -v '-race' '-covermode=atomic' '-coverprofile=coverage.out' -parallel 10
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
Expand Down
2 changes: 1 addition & 1 deletion conncheck_test.go
Expand Up @@ -17,7 +17,7 @@ import (
)

func TestStaleConnectionChecks(t *testing.T) {
runTests(t, dsn, func(dbt *DBTest) {
runTestsParallel(t, dsn, func(dbt *DBTest, _ string) {
dbt.mustExec("SET @@SESSION.wait_timeout = 2")

if err := dbt.db.Ping(); err != nil {
Expand Down

0 comments on commit 0004702

Please sign in to comment.