diff --git a/pkg/clustermesh/config_test.go b/pkg/clustermesh/config_test.go
index <HASH>..<HASH> 100644
--- a/pkg/clustermesh/config_test.go
+++ b/pkg/clustermesh/config_test.go
@@ -55,6 +55,9 @@ func expectNotExist(c *C, cm *ClusterMesh, name string) {
 
 func (s *ClusterMeshTestSuite) TestWatchConfigDirectory(c *C) {
 	skipKvstoreConnection = true
+	defer func() {
+		skipKvstoreConnection = false
+	}()
 
 	dir, err := ioutil.TempDir("", "multicluster")
 	c.Assert(err, IsNil)
clustermesh: Undo skipKvstoreConnection in unit test

Failure to undo the global variable can lead to follow-up unit tests failing
that require kvstore interactions.

Fixes: <I>b<I>b<I>d ("Inter cluster connectivity (ClusterMesh)")