Browse Source

修改bug

yjp 1 year ago
parent
commit
0271a731bb
2 changed files with 9 additions and 1 deletions
  1. 5 1
      test/instance/instance_test.go
  2. 4 0
      test/v1/v1_test.go

+ 5 - 1
test/instance/instance_test.go

@@ -19,7 +19,7 @@ func simpleUUID() string {
 }
 
 const (
-	noEvent = false
+	noEvent = true
 )
 
 var tableModelDescribe = map[string]string{
@@ -781,6 +781,10 @@ func TestReply(t *testing.T) {
 }
 
 func TestEventQuery(t *testing.T) {
+	if noEvent {
+		return
+	}
+
 	initClient(t, "localhost:30170", "2b78141779ee432295ca371b91c5cac7")
 	defer destroyClient(t, "2b78141779ee432295ca371b91c5cac7")
 

+ 4 - 0
test/v1/v1_test.go

@@ -785,6 +785,10 @@ func TestReply(t *testing.T) {
 }
 
 func TestEventQuery(t *testing.T) {
+	if noEvent {
+		return
+	}
+
 	initClient(t, "localhost:30170", "2b78141779ee432295ca371b91c5cac7")
 	defer destroyClient(t, "2b78141779ee432295ca371b91c5cac7")