Fix assertions
This commit is contained in:
committed by
Christian Tzolov
parent
f783796934
commit
0a42bf01f3
@@ -97,12 +97,12 @@ public class ChatBuilderTests {
|
||||
// Callback Functions
|
||||
assertThat(options.getFunctionCallbacks()).isNotNull();
|
||||
assertThat(options.getFunctionCallbacks().size()).isEqualTo(1);
|
||||
assertThat(options.getFunctionCallbacks().contains(cb));
|
||||
assertThat(options.getFunctionCallbacks()).contains(cb);
|
||||
|
||||
// Functions
|
||||
assertThat(options.getFunctions()).isNotNull();
|
||||
assertThat(options.getFunctions().size()).isEqualTo(1);
|
||||
assertThat(options.getFunctions().contains(func));
|
||||
assertThat(options.getFunctions()).contains(func);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -78,10 +78,8 @@ class RedisVectorStoreIT {
|
||||
@Test
|
||||
void ensureIndexGetsCreated() {
|
||||
this.contextRunner.run(context -> {
|
||||
assertThat(context.getBean(RedisVectorStore.class)
|
||||
.getJedis()
|
||||
.ftList()
|
||||
.contains(RedisVectorStore.DEFAULT_INDEX_NAME));
|
||||
assertThat(context.getBean(RedisVectorStore.class).getJedis().ftList())
|
||||
.contains(RedisVectorStore.DEFAULT_INDEX_NAME);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user