Skip to content

Commit

Permalink
MarketTest: Fix tests
Browse files Browse the repository at this point in the history
PhoenixTests: Fix tests
  • Loading branch information
skynetcap committed Nov 30, 2023
1 parent 899485b commit 165192c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions phoenix/src/test/java/PhoenixTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import lombok.extern.slf4j.Slf4j;
import org.bitcoinj.core.Base58;
import org.bitcoinj.core.Utils;
import org.junit.Ignore;
import org.junit.Test;
import org.p2p.solanaj.core.Account;
import org.p2p.solanaj.core.PublicKey;
Expand Down Expand Up @@ -80,6 +81,7 @@ public void phoenixGetMarketsTest() throws RpcException {
}

@Test
@Ignore
public void placeMultiplePostOnlyOrdersTest() throws IOException, RpcException {
PhoenixManager phoenixManager = new PhoenixManager(client);
Account tradingAccount = Account.fromJson(
Expand Down Expand Up @@ -162,6 +164,7 @@ public void placeMultiplePostOnlyOrdersTest() throws IOException, RpcException {
}

@Test
@Ignore
public void swapTest() throws IOException, RpcException {
PhoenixManager phoenixManager = new PhoenixManager(client);
Account tradingAccount = Account.fromJson(
Expand Down Expand Up @@ -254,6 +257,7 @@ public void orderLotsConversionTest() {
}

@Test
@Ignore
public void placeSingleOrderTest() throws IOException, RpcException {
PhoenixManager phoenixManager = new PhoenixManager(client);
Account tradingAccount = Account.fromJson(
Expand Down Expand Up @@ -366,6 +370,7 @@ public void orderNormalizedTest() {
}

@Test
@Ignore
public void cancelAllOrdersWithFreeFundsTest() throws RpcException, IOException {
Account tradingAccount = Account.fromJson(
Resources.toString(
Expand Down Expand Up @@ -426,6 +431,7 @@ public void phoenixGetJitoSolMarketTest() throws RpcException {
}

@Test
@Ignore
public void phoenixGetMarketDetailStreamingTest() throws InterruptedException {
final SubscriptionWebSocketClient mainnet = SubscriptionWebSocketClient.getInstance(
Cluster.MAINNET.getEndpoint()
Expand Down Expand Up @@ -539,6 +545,7 @@ public void phoenixGetMarketDetailTest() throws RpcException, IOException {
}

@Test
@Ignore
public void phoenixClaimSeatTest() throws RpcException, IOException {
Account tradingAccount = Account.fromJson(
Resources.toString(
Expand Down Expand Up @@ -582,6 +589,7 @@ public void phoenixClaimSeatTest() throws RpcException, IOException {
}

@Test
@Ignore
public void phoenixPlaceLimitOrderTest() throws IOException, RpcException, InterruptedException {
final AccountInfo marketAccountInfo = client.getApi().getAccountInfo(
SOL_USDC_MARKET,
Expand Down
2 changes: 1 addition & 1 deletion serum/src/test/java/MarketTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

public class MarketTest {

private final RpcClient client = new RpcClient("https://rpc.ankr.com/solana");
private final RpcClient client = new RpcClient(Cluster.MAINNET);
private static final Logger LOGGER = LogManager.getLogger(MarketTest.class);

/**
Expand Down

0 comments on commit 165192c

Please sign in to comment.