mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-0: Fix tests after GP-2752
This commit is contained in:
parent
707ec9288d
commit
f6eec1731a
2 changed files with 4 additions and 2 deletions
|
@ -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());
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue