From a1b125845e702f6f18d1e868722c7e099cd432ee Mon Sep 17 00:00:00 2001 From: wangjialing Date: Wed, 23 Feb 2022 17:56:56 +0800 Subject: [PATCH] fix failed test --- .../schema/compatibility/SchemaCompatibilityCheckTest.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pulsar-broker/src/test/java/org/apache/pulsar/schema/compatibility/SchemaCompatibilityCheckTest.java b/pulsar-broker/src/test/java/org/apache/pulsar/schema/compatibility/SchemaCompatibilityCheckTest.java index 7101376eaacd2..1b5e4d67232a7 100644 --- a/pulsar-broker/src/test/java/org/apache/pulsar/schema/compatibility/SchemaCompatibilityCheckTest.java +++ b/pulsar-broker/src/test/java/org/apache/pulsar/schema/compatibility/SchemaCompatibilityCheckTest.java @@ -248,8 +248,6 @@ public void testBrokerAllowAutoUpdateSchemaDisabled(SchemaCompatibilityStrategy pulsar.getConfig().setAllowAutoUpdateSchemaEnabled(false); - Policies policies = admin.namespaces().getPolicies(namespaceName.toString()); - Assert.assertFalse(policies.is_allow_auto_update_schema); ProducerBuilder producerThreeBuilder = pulsarClient .newProducer(Schema.AVRO(SchemaDefinition.builder().withAlwaysAllowNull @@ -263,7 +261,7 @@ public void testBrokerAllowAutoUpdateSchemaDisabled(SchemaCompatibilityStrategy } pulsar.getConfig().setAllowAutoUpdateSchemaEnabled(true); - policies = admin.namespaces().getPolicies(namespaceName.toString()); + Policies policies = admin.namespaces().getPolicies(namespaceName.toString()); Assert.assertTrue(policies.is_allow_auto_update_schema); ConsumerBuilder comsumerBuilder = pulsarClient.newConsumer(Schema.AVRO(