diff --git a/tool/testcli/README.MD b/tool/testcli/README.MD index 50bef0178..9ab94d4e0 100644 --- a/tool/testcli/README.MD +++ b/tool/testcli/README.MD @@ -142,8 +142,7 @@ func TestMain(m *testing.M) { defer lich.Teardown() d = New() if code := m.Run(); code != 0 { - lich.Teardown() - os.Exit(code) + panic(code) } } ``` diff --git a/pkg/testing/lich/docker-compose.yaml b/tool/testcli/docker-compose.yaml similarity index 89% rename from pkg/testing/lich/docker-compose.yaml rename to tool/testcli/docker-compose.yaml index afff139a2..57f78dac8 100644 --- a/pkg/testing/lich/docker-compose.yaml +++ b/tool/testcli/docker-compose.yaml @@ -7,6 +7,7 @@ services: - 3306:3306 environment: - MYSQL_ROOT_PASSWORD=root + - TZ=Asia/Shanghai volumes: - .:/docker-entrypoint-initdb.d command: [