mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-21 21:26:22 +08:00
GP-0: Fix tests after GP-2752
This commit is contained in:
@@ -984,6 +984,8 @@ public class GadpClientServerTest implements AsyncTestUtils {
|
||||
AsynchronousSocketChannel socket = socketChannel();
|
||||
try (ServerRunner runner = new ServerRunner()) {
|
||||
GadpClient client = new GadpClient("Test", socket);
|
||||
client.addModelListener(focusListener);
|
||||
|
||||
waitOn(AsyncUtils.completable(TypeSpec.VOID, socket::connect,
|
||||
runner.server.getLocalAddress()));
|
||||
waitOn(client.connect());
|
||||
@@ -1044,7 +1046,7 @@ public class GadpClientServerTest implements AsyncTestUtils {
|
||||
AsynchronousSocketChannel socket = socketChannel();
|
||||
try (ServerRunner runner = new ServerRunner()) {
|
||||
GadpClient client = new GadpClient("Test", socket);
|
||||
|
||||
client.addModelListener(elemL);
|
||||
waitOn(AsyncUtils.completable(TypeSpec.VOID, socket::connect,
|
||||
runner.server.getLocalAddress()));
|
||||
waitOn(client.connect());
|
||||
|
||||
+1
-1
@@ -240,7 +240,7 @@ public class DebuggerModelServicePlugin extends Plugin
|
||||
public boolean addModel(DebuggerObjectModel model) {
|
||||
Objects.requireNonNull(model);
|
||||
synchronized (models) {
|
||||
if (models.contains(model)) {
|
||||
if (!models.add(model)) {
|
||||
return false;
|
||||
}
|
||||
model.addModelListener(forRemovalAndFocusListener);
|
||||
|
||||
Reference in New Issue
Block a user