Skip to content

Commit c803f84

Browse files
committed
Fix Schema Registry tests
1 parent 1fdaf92 commit c803f84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

schema-registry/spring-cloud-stream-schema-registry-server/src/test/java/org/springframework/cloud/stream/schema/registry/server/SchemaRegistryServerAvroTests.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,8 @@ class SchemaRegistryServerAvroTests {
100100
private static final Schema AAVRO_USER_REGISTRY_SCHEMA_V1_WITH_QUAL_SUBJECT = toSchema(
101101
AVRO_USER_SCHEMA_QUALIFED_NAME_STRATEGY_SUBJECT,
102102
AVRO_FORMAT_NAME, AVRO_USER_AVRO_SCHEMA_V1.toString());
103-
104-
@Autowired
105-
private TestRestTemplate client;
103+
104+
private TestRestTemplate client = new TestRestTemplate();
106105

107106
@Autowired
108107
private SchemaServerProperties schemaServerProperties;

0 commit comments

Comments
 (0)