Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
NSAmelchev committed Jan 30, 2024
1 parent e8e98d5 commit 406253f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,29 +86,29 @@ public class VisorManagementEventSelfTest extends GridCommonAbstractTest {
public void testManagementTask() throws Exception {
ignite.commandsRegistry().register(new TestComputeCommand());

doTestVisorTask(TestManagementTask.class, false);
doTestManagementTask(TestManagementTask.class, false);
}

/** */
@Test
public void testManagementTaskLocalCommand() throws Exception {
ignite.commandsRegistry().register(new TestLocalCommand());

doTestVisorTask(TestManagementTask.class, false);
doTestManagementTask(TestManagementTask.class, false);
}

/** */
@Test
public void testNotManagementTask() throws Exception {
doTestVisorTask(TestTask.class, false);
doTestManagementTask(TestTask.class, false);
}

/**
* @param cls class of the task.
*
* @throws Exception If failed.
*/
private void doTestVisorTask(Class<? extends ComputeTask<?, ?>> cls, boolean expEvt) throws Exception {
private void doTestManagementTask(Class<? extends ComputeTask<?, ?>> cls, boolean expEvt) throws Exception {
final AtomicReference<TaskEvent> evt = new AtomicReference<>();

final CountDownLatch evtLatch = new CountDownLatch(1);
Expand Down

0 comments on commit 406253f

Please sign in to comment.