Skip to content
This repository has been archived by the owner on Feb 14, 2023. It is now read-only.

Commit

Permalink
add upgrade call test
Browse files Browse the repository at this point in the history
  • Loading branch information
nksazonov committed Oct 21, 2022
1 parent d8829fb commit 1b45b2d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/vault/VaultUpgradability.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,10 @@ describe('Vault Upgradeability Contracts', () => {
await Vault1ProxiedAsSomeone.upgrade();
});

it('revert on someone upgrading', async () => {
await expect(Vault1ProxiedAsSomeone.upgrade()).to.be.revertedWith(NOT_MAINTAINER);
});

it('upgrade when 1 next contract available', async () => {
// v1
// Note: connecting user (3rd party address) to avoid any address collisions
Expand Down

0 comments on commit 1b45b2d

Please sign in to comment.