Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JavaInstanceTest should be AssertEquals #12836

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -34,6 +34,7 @@
import org.apache.pulsar.functions.api.Function;
import org.apache.pulsar.functions.api.Record;
import org.apache.pulsar.functions.instance.JavaInstance.AsyncFuncRequest;
import org.testng.Assert;
import org.testng.annotations.Test;

@Slf4j
Expand Down Expand Up @@ -226,7 +227,7 @@ public void testAsyncFunctionMaxPending() throws Exception {

for (int i = 0; i < 3; i++) {
AsyncFuncRequest request = instance.getPendingAsyncRequests().poll();
assertNotNull(testString + "-lambda", (String) request.getProcessResult().get());
Assert.assertEquals(request.getProcessResult().get(), testString + "-lambda");
}

long endTime = System.currentTimeMillis();
Expand All @@ -235,7 +236,6 @@ public void testAsyncFunctionMaxPending() throws Exception {
instance.close();
}

@SuppressWarnings("serial")
private static class UserException extends Exception {
public UserException(String msg) {
super(msg);
Expand Down