pls work i beg
All checks were successful
Publish to Maven / docker (8, 3.8.5) (push) Successful in 35s
All checks were successful
Publish to Maven / docker (8, 3.8.5) (push) Successful in 35s
This commit is contained in:
parent
e0d36d5a02
commit
2f0b99110a
@ -42,7 +42,7 @@ jobs:
|
||||
|
||||
# Run Maven tests
|
||||
- name: Maven Tests
|
||||
run: mvn clean test -T6C
|
||||
run: mvn test -B
|
||||
|
||||
# Publish to Maven
|
||||
- name: Publish to Maven
|
||||
|
@ -23,11 +23,10 @@
|
||||
*/
|
||||
package me.braydon.pelican.test;
|
||||
|
||||
import lombok.SneakyThrows;
|
||||
import me.braydon.pelican.action.pelican.PelicanPanelActions;
|
||||
import me.braydon.pelican.action.pterodactyl.application.ApplicationNodeActions;
|
||||
import me.braydon.pelican.client.ClientConfig;
|
||||
import me.braydon.pelican.client.Pelican4J;
|
||||
import me.braydon.pelican.model.Node;
|
||||
import org.junit.jupiter.api.BeforeAll;
|
||||
import org.junit.jupiter.api.Nested;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@ -64,16 +63,10 @@ public final class PelicanActionTests {
|
||||
* Test getting a list of
|
||||
* nodes from the panel.
|
||||
*/
|
||||
@Test @SneakyThrows
|
||||
@Test
|
||||
void testGetNodes() {
|
||||
ApplicationNodeActions nodeActions = client.actions().application().nodes();
|
||||
|
||||
// Get the details for Node 1, await the response async
|
||||
nodeActions.getDetails(1).queue(node -> {
|
||||
System.out.println("node = " + node);
|
||||
});
|
||||
|
||||
Thread.sleep(2000L);
|
||||
Node node = client.actions().application().nodes().getDetails(1).execute();
|
||||
System.out.println("node = " + node);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user