Skip to content

Commit

Permalink
Activates ignored tests due to configurable client timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
aliszka committed Mar 9, 2023
1 parent 096da74 commit 3280b5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.jparams.junit4.data.DataMethod;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockserver.client.MockServerClient;
Expand Down Expand Up @@ -65,7 +64,7 @@ public void before() {
response().withStatusCode(200).withBody(metaBody())
);

Config config = new Config("http", MOCK_SERVER_HOST + ":" + MOCK_SERVER_PORT);
Config config = new Config("http", MOCK_SERVER_HOST + ":" + MOCK_SERVER_PORT, null, 1, 1, 1);
client = new WeaviateClient(config);
}

Expand Down Expand Up @@ -191,7 +190,6 @@ public static Object[][] provideForNotCreateBatchDueToConnectionIssue() {
};
}

@Ignore("ignore until client has configurable timeout value (1s for following the test)")
@Test
@DataMethod(source = ClientBatchCreateMockServerTest.class, method = "provideForNotCreateBatchDueToTimeoutIssue")
public void shouldNotCreateBatchDueToTimeoutIssue(ObjectsBatcher.BatchRetriesConfig batchRetriesConfig,
Expand Down Expand Up @@ -266,7 +264,6 @@ public void shouldNotCreateBatchDueToTimeoutIssue(ObjectsBatcher.BatchRetriesCon
}


@Ignore("ignore until client has configurable timeout value (1s for following the test)")
@Test
@DataMethod(source = ClientBatchCreateMockServerTest.class, method = "provideForNotCreateBatchDueToTimeoutIssue")
public void shouldNotCreateAutoBatchDueToTimeoutIssue(ObjectsBatcher.BatchRetriesConfig batchRetriesConfig,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.jparams.junit4.data.DataMethod;
import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockserver.client.MockServerClient;
Expand Down Expand Up @@ -55,7 +54,7 @@ public void before() {
response().withStatusCode(200).withBody(metaBody())
);

Config config = new Config("http", MOCK_SERVER_HOST + ":" + MOCK_SERVER_PORT);
Config config = new Config("http", MOCK_SERVER_HOST + ":" + MOCK_SERVER_PORT, null, 1, 1, 1);
client = new WeaviateClient(config);
}

Expand Down Expand Up @@ -194,7 +193,6 @@ public static Object[][] provideForNotCreateBatchReferencesDueToConnectionIssue(
};
}

@Ignore("ignore until client has configurable timeout value (1s for following the test)")
@Test
@DataMethod(source = ClientBatchReferencesCreateMockServerTest.class,
method = "provideForNotCreateBatchReferencesDueToTimeoutIssue")
Expand Down Expand Up @@ -243,7 +241,6 @@ public void shouldNotCreateBatchReferencesDueToTimeoutIssue(ReferencesBatcher.Ba
);
}

@Ignore("ignore until client has configurable timeout value (1s for following the test)")
@Test
@DataMethod(source = ClientBatchReferencesCreateMockServerTest.class,
method = "provideForNotCreateBatchReferencesDueToTimeoutIssue")
Expand Down

0 comments on commit 3280b5f

Please sign in to comment.