You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "enjoy-binbin (via GitHub)" <gi...@apache.org> on 2023/04/12 02:36:00 UTC

[GitHub] [incubator-kvrocks] enjoy-binbin commented on a diff in pull request #1379: Add cluster section into the info command

enjoy-binbin commented on code in PR #1379:
URL: https://github.com/apache/incubator-kvrocks/pull/1379#discussion_r1163512098


##########
tests/gocase/unit/info/info_test.go:
##########
@@ -88,4 +88,8 @@ func TestInfo(t *testing.T) {
 		require.GreaterOrEqual(t, lastBgsaveTimeSec, 0)
 		require.Less(t, lastBgsaveTimeSec, 3)
 	})
+
+	t.Run("get cluster information by INFO", func(t *testing.T) {
+		require.Equal(t, "0", util.FindInfoEntry(rdb, "cluster_enabled", "cluster"))
+	})

Review Comment:
   thanks, i wanted to add one, but it was too late yesterday. took your suggestions



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org