From db80abe6b5c4483372dd800913ea7ccf14c7f762 Mon Sep 17 00:00:00 2001 From: Otokaze Date: Tue, 8 Oct 2019 12:26:43 +0800 Subject: [PATCH] update doc --- tool/testcli/README.MD | 3 +-- {pkg/testing/lich => tool/testcli}/docker-compose.yaml | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) rename {pkg/testing/lich => tool/testcli}/docker-compose.yaml (89%) 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: [