Skip to content

Commit 0e50b89

Browse files
markpollacknamsoo2
authored andcommitted
Fix CassandraChatMemoryAutoConfigurationIT
Added .repository to property name in test Signed-off-by: minsoo.nam <[email protected]>
1 parent 4d3868e commit 0e50b89

File tree

1 file changed

+2
-2
lines changed
  • auto-configurations/models/chat/memory/spring-ai-autoconfigure-model-chat-memory-cassandra/src/test/java/org/springframework/ai/model/chat/memory/repository/cassandra/autoconfigure

1 file changed

+2
-2
lines changed

auto-configurations/models/chat/memory/spring-ai-autoconfigure-model-chat-memory-cassandra/src/test/java/org/springframework/ai/model/chat/memory/repository/cassandra/autoconfigure/CassandraChatMemoryAutoConfigurationIT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void addAndGet() {
5959
this.contextRunner.withPropertyValues("spring.cassandra.contactPoints=" + getContactPointHost())
6060
.withPropertyValues("spring.cassandra.port=" + getContactPointPort())
6161
.withPropertyValues("spring.cassandra.localDatacenter=" + cassandraContainer.getLocalDatacenter())
62-
.withPropertyValues("spring.ai.chat.memory.cassandra.time-to-live=" + getTimeToLive())
62+
.withPropertyValues("spring.ai.chat.memory.repository.cassandra.time-to-live=" + getTimeToLive())
6363
.run(context -> {
6464
CassandraChatMemoryRepository memory = context.getBean(CassandraChatMemoryRepository.class);
6565

@@ -95,7 +95,7 @@ void compareTimeToLive_ISO8601Format() {
9595
this.contextRunner.withPropertyValues("spring.cassandra.contactPoints=" + getContactPointHost())
9696
.withPropertyValues("spring.cassandra.port=" + getContactPointPort())
9797
.withPropertyValues("spring.cassandra.localDatacenter=" + cassandraContainer.getLocalDatacenter())
98-
.withPropertyValues("spring.ai.chat.memory.cassandra.time-to-live=" + getTimeToLiveString())
98+
.withPropertyValues("spring.ai.chat.memory.repository.cassandra.time-to-live=" + getTimeToLiveString())
9999
.run(context -> {
100100
CassandraChatMemoryProperties properties = context.getBean(CassandraChatMemoryProperties.class);
101101
assertThat(properties.getTimeToLive()).isEqualTo(Duration.parse(getTimeToLiveString()));

0 commit comments

Comments
 (0)