From 2f0b99110aa8834f6d64917c60fc89070eba0c64 Mon Sep 17 00:00:00 2001 From: Rainnny7 Date: Sun, 28 Apr 2024 19:09:42 -0400 Subject: [PATCH] pls work i beg --- .gitea/workflows/maven-publish.yml | 2 +- .../braydon/pelican/test/PelicanActionTests.java | 15 ++++----------- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/maven-publish.yml b/.gitea/workflows/maven-publish.yml index 7f757ae..40300b7 100644 --- a/.gitea/workflows/maven-publish.yml +++ b/.gitea/workflows/maven-publish.yml @@ -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 diff --git a/src/test/java/me/braydon/pelican/test/PelicanActionTests.java b/src/test/java/me/braydon/pelican/test/PelicanActionTests.java index 05e6f75..b79edad 100644 --- a/src/test/java/me/braydon/pelican/test/PelicanActionTests.java +++ b/src/test/java/me/braydon/pelican/test/PelicanActionTests.java @@ -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); } } } \ No newline at end of file