Browse Source

test: fix proto2 check for TestUDT

Chris Bannister 9 năm trước cách đây
mục cha
commit
18f9871608
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      udt_test.go

+ 1 - 1
udt_test.go

@@ -152,7 +152,7 @@ func TestUDT_Reflect(t *testing.T) {
 }
 
 func TestUDT_Proto2error(t *testing.T) {
-	if *flagProto < protoVersion3 {
+	if *flagProto > protoVersion2 {
 		t.Skip("UDT are only available on protocol >= 3")
 	}