Skip to content

Commit c0a30b3

Browse files
committed
skip in mysql ci
1 parent 5f63d30 commit c0a30b3

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

flow/e2e/clickhouse_mssql_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package e2e
22

33
import (
44
"fmt"
5+
"os"
56
"strings"
67
"testing"
78

@@ -12,6 +13,9 @@ import (
1213
)
1314

1415
func TestPeerFlowE2ETestSuiteMSSQL_CH(t *testing.T) {
16+
if os.Getenv("CI_MSSQL_HOST") == "" {
17+
t.Skip("CI_MSSQL_HOST not set")
18+
}
1519
e2eshared.RunSuite(t, SetupClickHouseSuite(t, false, func(t *testing.T) (*MsSqlSource, string, error) {
1620
t.Helper()
1721
suffix := "mssch_" + strings.ToLower(shared.RandomString(8))

flow/e2e/mssql.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ func mssqlPort() uint32 {
3535
func SetupMsSql(t *testing.T, suffix string) (*MsSqlSource, error) {
3636
t.Helper()
3737

38+
if os.Getenv("CI_MSSQL_HOST") == "" {
39+
return nil, fmt.Errorf("CI_MSSQL_HOST not set, skipping SQL Server tests")
40+
}
41+
3842
config := &protos.SqlServerConfig{
3943
Host: mssqlHost(),
4044
Port: mssqlPort(),

0 commit comments

Comments
 (0)