You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@devlake.apache.org by ma...@apache.org on 2022/09/15 13:15:12 UTC

[incubator-devlake] branch main updated: fix: remove invalid test case TestReadConfig (#3047)

This is an automated email from the ASF dual-hosted git repository.

mappjzc pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new e43b9d70 fix: remove invalid test case TestReadConfig (#3047)
e43b9d70 is described below

commit e43b9d70203759ddbe97205f29aeb63106c50d34
Author: Klesh Wong <zh...@merico.dev>
AuthorDate: Thu Sep 15 21:15:08 2022 +0800

    fix: remove invalid test case TestReadConfig (#3047)
---
 config/config_test.go | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/config/config_test.go b/config/config_test.go
index 6b7e1c7f..a48a9489 100644
--- a/config/config_test.go
+++ b/config/config_test.go
@@ -25,14 +25,6 @@ import (
 	"testing"
 )
 
-func TestReadConfig(t *testing.T) {
-	DbUrl := "mysql://merico:merico@mysql:3306/lake?charset=utf8mb4&parseTime=True"
-	v := GetConfig()
-	currentDbUrl := v.GetString("DB_URL")
-	logrus.Infof("current db url: %s\n", currentDbUrl)
-	assert.Equal(t, currentDbUrl == DbUrl, true)
-}
-
 func TestWriteConfig(t *testing.T) {
 	filename := ".env"
 	cwd, _ := os.Getwd()