Skip to content

Commit

Permalink
test: update test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
petarTxFusion committed Nov 17, 2024
1 parent a435524 commit 0dcb111
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: |
git clone https://github.com/matter-labs/local-setup.git
pushd local-setup
./start.sh
./start-zk-chains.sh
popd
- name: Test with Gradle
run: gradle clean test
7 changes: 5 additions & 2 deletions src/test/java/io/zksync/integration/BaseIntegrationEnv.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,11 @@ public void testPrepare() throws Exception {
System.out.println("L1 DAI balance after: " + testWallet.getBalanceL1().send());
System.out.println("L2 DAI balance after: " + testWallet.getBalance(l2Dai).send());

String tokenAddress = deployToken();
deployPaymaster(tokenAddress);
String code = zksync.ethGetCode("0x841c43fa5d8fffdb9efe3358906f7578d8700dd4", DefaultBlockParameterName.LATEST).send().getCode();
if (code.isEmpty()) {
String tokenAddress = deployToken();
deployPaymaster(tokenAddress);
}
}

public void depositToken(String tokenAddress) throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ public void testEstimateGasDepositBaseToken() throws Exception {
}

@Test
@Disabled
public void testEstimateGasDepositERC20() throws Exception {
if (testWallet.isETHBasedChain()){
DepositTransaction transaction = new DepositTransaction(L1_DAI, BigInteger.valueOf(5), null,null, null, null, null, null, null, null, null);
Expand Down

0 comments on commit 0dcb111

Please sign in to comment.