Remove CloneFactory test logic from DepositFactoryTest
@@ -28,35 +28,6 @@ contract('DepositFactory', (accounts) => {
deployed = await utils.deploySystem(TEST_DEPOSIT_DEPLOY)
})
- describe('CloneFactory', async () => {
- it('createClone()', async () => {
- const blockNumber = await web3.eth.getBlockNumber()
-
- await deployed.TestCloneFactory.getCloneAddress(depositContract.address)
-
- const eventList = await deployed.TestCloneFactory.getPastEvents('DepositCloneCreated', { fromBlock: blockNumber, toBlock: 'latest' })
- assert.equal(eventList.length, 1, 'eventList length should be 1')
-
- const cloneAddress = eventList[0].returnValues.depositCloneAddress
- assert(web3.utils.isAddress(cloneAddress), 'cloneAddress should be an address')
-
- const depositInstance = await Deposit.at(cloneAddress)
- const depositInstanceState = await depositInstance.getCurrentState()
- expect(depositInstanceState, 'Deposit instance should be in START').to.eq.BN(utils.states.START)
- })
-
- it('isClone()', async () => {
- const blockNumber = await web3.eth.getBlockNumber()
-
- await deployed.TestCloneFactory.getCloneAddress(depositContract.address)
- const eventList = await deployed.TestCloneFactory.getPastEvents('DepositCloneCreated', { fromBlock: blockNumber, toBlock: 'latest' })
- const cloneAddress = eventList[0].returnValues.depositCloneAddress
-
- const checkClone = await deployed.TestCloneFactory.checkClone.call(depositContract.address, cloneAddress)
- assert(checkClone, 'isClone() should return true')
- })
- })
-
describe('createDeposit()', async () => {
it('creates new clone instances', async () => {
const keep1 = await KeepStub.new()
