You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, we suffer from the fact that we have to restrict serial execution unit tests in our CI with go test -p 1 -- for more details, please refer to #1283 (comment)
The requirement of -p 1 is possibly due to the use of a global database and tables during testing. To remove the restriction, we can start from rewrite TestMain into a new and reusable function createDatabase. In each test case, we can call this function.
The text was updated successfully, but these errors were encountered:
In pkg/sqlfs/sqlfile_test.go
, there defines a
TestMain` functionsqlflow/pkg/sqlfs/sqlfile_test.go
Lines 146 to 174 in 68ae7c6
Currently, we suffer from the fact that we have to restrict serial execution unit tests in our CI with
go test -p 1
-- for more details, please refer to #1283 (comment)The requirement of
-p 1
is possibly due to the use of a global database and tables during testing. To remove the restriction, we can start from rewriteTestMain
into a new and reusable functioncreateDatabase
. In each test case, we can call this function.The text was updated successfully, but these errors were encountered: