Skip to content

Commit f521a7f

Browse files
committed
Revert "Moved setup into the test method, so it doesn't get called when precondition isn't met."
This reverts commit b6d2ab8.
1 parent 4ba2078 commit f521a7f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mongodb/fragment-spi/sample/src/test/java/com/example/data/mongodb/MovieRepositoryTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ static void setProperties(DynamicPropertyRegistry registry) {
6363
@Autowired MovieRepository repository;
6464
@Autowired MongoClient client;
6565

66+
@BeforeEach
6667
void setUp() {
6768

6869
Movies movies = new Movies(client);
@@ -74,8 +75,6 @@ void setUp() {
7475
@Test
7576
void testVectorSearch() {
7677

77-
setUp();
78-
7978
List<Movie> result = repository.vectorSearch("plot_vector_index", "plot_embedding", List.of(vectors));
8079
result.stream().map(Objects::toString).forEach(log.atLevel(Level.INFO)::log);
8180
}

0 commit comments

Comments
 (0)