Skip to content

Commit

Permalink
fix(test): fix config of test because of modification of market contr…
Browse files Browse the repository at this point in the history
…act value
  • Loading branch information
Wenhua Zhang committed Jul 24, 2020
1 parent 033ae22 commit 95e4a1f
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ public void checkAvailableContractTypeCorrespondingToCode() {
// and you will get the value from the output,
// then update the value to checkAvailableContractType
// and checkActiveDefaultOperations
String validContractType = "7fff1fc0037e0830000000000000000000000000000000000000000000000000";
String validContractType = "7fff1fc0037e3800000000000000000000000000000000000000000000000000";

byte[] availableContractType = new byte[32];
for (ContractType contractType : ContractType.values()) {
Expand All @@ -985,7 +985,7 @@ public void checkAvailableContractTypeCorrespondingToCode() {

System.out.println(ByteArray.toHexString(availableContractType));

Assert.assertEquals(ByteArray.toHexString(availableContractType), validContractType);
Assert.assertEquals(validContractType, ByteArray.toHexString(availableContractType));

}

Expand All @@ -996,7 +996,7 @@ public void checkActiveDefaultOperationsCorrespondingToCode() {
// 7fff1fc0033e0000000000000000000000000000000000000000000000000000,
// and it should call the addSystemContractAndSetPermission to add new contract
// type
String validContractType = "7fff1fc0033e0830000000000000000000000000000000000000000000000000";
String validContractType = "7fff1fc0033e3800000000000000000000000000000000000000000000000000";

byte[] availableContractType = new byte[32];
for (ContractType contractType : ContractType.values()) {
Expand All @@ -1013,13 +1013,13 @@ public void checkActiveDefaultOperationsCorrespondingToCode() {

System.out.println(ByteArray.toHexString(availableContractType));

Assert.assertEquals(ByteArray.toHexString(availableContractType), validContractType);
Assert.assertEquals(validContractType, ByteArray.toHexString(availableContractType));

}

@Test
public void checkAvailableContractType() {
String validContractType = "7fff1fc0037e0930000000000000000000000000000000000000000000000000";
String validContractType = "7fff1fc0037e3900000000000000000000000000000000000000000000000000";

byte[] availableContractType = new byte[32];
for (ContractType contractType : ContractType.values()) {
Expand All @@ -1034,13 +1034,13 @@ public void checkAvailableContractType() {

System.out.println(ByteArray.toHexString(availableContractType));

Assert.assertEquals(ByteArray.toHexString(availableContractType), validContractType);
Assert.assertEquals(validContractType, ByteArray.toHexString(availableContractType));

}

@Test
public void checkActiveDefaultOperations() {
String validContractType = "7fff1fc0033e0930000000000000000000000000000000000000000000000000";
String validContractType = "7fff1fc0033e3900000000000000000000000000000000000000000000000000";

byte[] availableContractType = new byte[32];
for (ContractType contractType : ContractType.values()) {
Expand All @@ -1056,7 +1056,7 @@ public void checkActiveDefaultOperations() {

System.out.println(ByteArray.toHexString(availableContractType));

Assert.assertEquals(ByteArray.toHexString(availableContractType), validContractType);
Assert.assertEquals(validContractType, ByteArray.toHexString(availableContractType));

}

Expand Down

0 comments on commit 95e4a1f

Please sign in to comment.