Skip to content

Commit 7ea1b6b

Browse files
committed
Enable previously disabled tests, since the issues were fixed
Additionally, return the old disabled reasons, which were accidentally changed in 06f0af9
1 parent 3b5ddfd commit 7ea1b6b

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

integration-tests/openai/src/test/java/org/acme/example/openai/chat/ChatLanguageModelResourceTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
import org.acme.example.openai.TestUtils;
1919
import org.hamcrest.MatcherAssert;
20-
import org.junit.jupiter.api.Disabled;
2120
import org.junit.jupiter.api.Test;
2221
import org.junit.jupiter.api.condition.EnabledIfSystemProperty;
2322

@@ -43,8 +42,7 @@ public void blocking() {
4342
}
4443

4544
@Test
46-
@EnabledIfSystemProperty(named = "quarkus.test.profile", matches = "cloud-llm", disabledReason = "mockgpt does not implement moderations")
47-
@Disabled("https://github.com/quarkiverse/quarkus-langchain4j/issues/1693")
45+
@EnabledIfSystemProperty(named = "quarkus.test.profile", matches = "cloud-llm", disabledReason = "The Mock API does not handle streaming properly")
4846
public void sse() throws Exception {
4947
Client client = ClientBuilder.newBuilder().build();
5048
WebTarget target = client.target(url.toString() + "/streaming");
@@ -86,7 +84,7 @@ public void structuredPrompt() {
8684
}
8785

8886
@Test
89-
@Disabled("https://github.com/quarkiverse/quarkus-langchain4j/issues/1695")
87+
@EnabledIfSystemProperty(named = "quarkus.test.profile", matches = "cloud-llm", disabledReason = "The Mock API does not handle streaming properly")
9088
public void memory() {
9189
given()
9290
.baseUri(url.toString())

integration-tests/openai/src/test/java/org/acme/example/openai/embedding/EmbeddingModelResourceTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import io.quarkus.test.junit.QuarkusTest;
1414

1515
@QuarkusTest
16-
@EnabledIfSystemProperty(named = "quarkus.test.profile", matches = "cloud-llm", disabledReason = "mockgpt does not implement moderations")
16+
@EnabledIfSystemProperty(named = "quarkus.test.profile", matches = "cloud-llm", disabledReason = "mockgpt does not implement embeddings")
1717
public class EmbeddingModelResourceTest {
1818

1919
@TestHTTPEndpoint(EmbeddingModelResource.class)

0 commit comments

Comments
 (0)