You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by ji...@apache.org on 2025/06/24 02:20:13 UTC

(iotdb-client-go) branch modify_default_password created (now 8faa354)

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

jiangtian pushed a change to branch modify_default_password
in repository https://gitbox.apache.org/repos/asf/iotdb-client-go.git


      at 8faa354  fix tests

This branch includes the following new commits:

     new 8faa354  fix tests

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(iotdb-client-go) 01/01: fix tests

Posted by ji...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jiangtian pushed a commit to branch modify_default_password
in repository https://gitbox.apache.org/repos/asf/iotdb-client-go.git

commit 8faa354ced45031748721da2eed2267062c8d8cc
Author: Tian Jiang <jt...@163.com>
AuthorDate: Tue Jun 24 10:10:11 2025 +0800

    fix tests
---
 example/session_example.go                   | 4 ++--
 example/session_pool/session_pool_example.go | 2 +-
 test/e2e/e2e_test.go                         | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/example/session_example.go b/example/session_example.go
index ce6a043..d65c3a4 100644
--- a/example/session_example.go
+++ b/example/session_example.go
@@ -43,7 +43,7 @@ func main() {
 	flag.StringVar(&host, "host", "127.0.0.1", "--host=192.168.1.100")
 	flag.StringVar(&port, "port", "6667", "--port=6667")
 	flag.StringVar(&user, "user", "root", "--user=root")
-	flag.StringVar(&password, "password", "root", "--password=root")
+	flag.StringVar(&password, "password", "IoTDB@2017", "--password=IoTDB@2017")
 	flag.Parse()
 	config := &client.Config{
 		Host:     host,
@@ -660,7 +660,7 @@ func connectCluster() {
 	config := &client.ClusterConfig{
 		NodeUrls: strings.Split("127.0.0.1:6667,127.0.0.1:6668,127.0.0.1:6669", ","),
 		UserName: "root",
-		Password: "root",
+		Password: "IoTDB@2017",
 	}
 	session = client.NewClusterSession(config)
 	if err := session.OpenCluster(false); err != nil {
diff --git a/example/session_pool/session_pool_example.go b/example/session_pool/session_pool_example.go
index c43a4fb..f84d591 100644
--- a/example/session_pool/session_pool_example.go
+++ b/example/session_pool/session_pool_example.go
@@ -44,7 +44,7 @@ func main() {
 	flag.StringVar(&host, "host", "127.0.0.1", "--host=192.168.1.100")
 	flag.StringVar(&port, "port", "6667", "--port=6667")
 	flag.StringVar(&user, "user", "root", "--user=root")
-	flag.StringVar(&password, "password", "root", "--password=root")
+	flag.StringVar(&password, "password", "IoTDB@2017", "--password=IoTDB@2017")
 	flag.Parse()
 	config := &client.PoolConfig{
 		Host:     host,
diff --git a/test/e2e/e2e_test.go b/test/e2e/e2e_test.go
index beebf76..fc0efc0 100644
--- a/test/e2e/e2e_test.go
+++ b/test/e2e/e2e_test.go
@@ -45,7 +45,7 @@ func (s *e2eTestSuite) SetupSuite() {
 		Host:     "iotdb",
 		Port:     "6667",
 		UserName: "root",
-		Password: "root",
+		Password: "IoTDB@2017",
 	}
 
 	s.session = client.NewSession(config)