mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-04 04:49:12 +00:00
Issue #2525 - Clean up SharedBlockingCallback.
Improved tests. Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
This commit is contained in:
parent
a719c29b40
commit
b4f2e6ddea
@ -32,7 +32,6 @@ import org.hamcrest.Matchers;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
import static org.hamcrest.Matchers.instanceOf;
|
||||
import static org.hamcrest.Matchers.not;
|
||||
import static org.hamcrest.Matchers.sameInstance;
|
||||
@ -242,7 +241,7 @@ public class SharedBlockingCallbackTest
|
||||
|
||||
try (Blocker blocker=sbcb.acquire())
|
||||
{
|
||||
assertThat(blocker,not(equalTo(b0)));
|
||||
assertThat(blocker,not(sameInstance(b0)));
|
||||
b0.succeeded();
|
||||
blocker.succeeded();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user