travis, examples: Run lockup against devnet

This commit is contained in:
Armani Ferrante 2021-02-08 16:08:38 +08:00
parent 14ebb5aa9b
commit 5378a21123
No known key found for this signature in database
GPG Key ID: D597A80BCF8E12B7
3 changed files with 5 additions and 3 deletions

View File

@ -55,3 +55,5 @@ jobs:
- pushd examples/tutorial/basic-2 && anchor test && popd
- pushd examples/tutorial/basic-3 && anchor test && popd
- pushd examples/tutorial/basic-4 && anchor test && popd
- solana airdrop 10 --url https://devnet.solana.com && solana airdrop 10 --url https://devnet.solana.com
- pushd examples/lockup && anchor test && popd

View File

@ -1,2 +1,2 @@
cluster = "localnet"
cluster = "devnet"
wallet = "~/.config/solana/id.json"

View File

@ -582,8 +582,8 @@ describe("Lockup and Registry", () => {
it("Drops a locked reward", async () => {
lockedRewardKind = {
locked: {
endTs: new anchor.BN(Date.now() / 1000 + 5),
periodCount: new anchor.BN(3),
endTs: new anchor.BN(Date.now() / 1000 + 6),
periodCount: new anchor.BN(2),
},
};
lockedRewardAmount = new anchor.BN(200);