Skip to content

Commit

Permalink
unknown problem with running all tests at the same time
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-sekanina committed Feb 10, 2023
1 parent 5f1dee3 commit b214bff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion applet/src/main/java/applet/MainApplet.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ public class MainApplet extends Applet implements MultiSelectable {
public PSBT psbt;
public static byte[] PSBTdata;
public static byte[] controlArray;
public static byte [] policy;
short offset;
short locked = 0; // 0 locked, 1 - opened

//private byte[] data = JCSystem.makeTransientByteArray((short) (1024 * 10),
// JCSystem.CLEAR_ON_DESELECT);
Expand Down Expand Up @@ -142,7 +144,6 @@ public void process(APDU apdu) {
if (GlobalMap.PSBTversion == 2) {
FromApplet.send_data(apdu, PSBT.current_input_map);
}

}

if (cla == AppletInstructions.CLASS_DOWNLOAD_GLOBAL_MAP && ins == AppletInstructions.INS_DOWNLOAD_NUM_OUTPUT_V0){
Expand Down
6 changes: 2 additions & 4 deletions applet/src/test/java/tests/AppletTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,6 @@ public void transaction10() throws Exception {
// assertEquals(ac.bytesToHex(download.downloadOutputV0(simulator, (byte) 1)), ""); // sparrow refuses to open this transaction
System.out.print("Test transaction10: passed" + System.lineSeparator());
}

/**
@Test
public void transaction11() throws Exception {
byte[] transaction = AppletControl.fromHex(TransactionsImported.validTransaction11);
Expand Down Expand Up @@ -313,8 +311,8 @@ public void transaction15() throws Exception {
// assertEquals(ac.bytesToHex(download.downloadOutputV0(simulator, (byte) 0)), ""); // sparrow refuses to open this transaction
// assertEquals(ac.bytesToHex(download.downloadOutputV0(simulator, (byte) 1)), ""); // sparrow refuses to open this transaction
}
**/

/**
*/
//@Test
public void runAllTests() throws Exception {
transactionTestTemplate((byte) 1, (byte) 2, AppletControl.fromHex(TransactionsImported.validTransaction1));
Expand Down

0 comments on commit b214bff

Please sign in to comment.