Skip to content

Commit

Permalink
test: KernelMock -> KernelOverloadMock
Browse files Browse the repository at this point in the history
  • Loading branch information
sohkai committed Aug 22, 2018
1 parent 59bc0c4 commit f63fe44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions test/kernel_apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const AppProxyPinned = artifacts.require('AppProxyPinned')
const AppStub = artifacts.require('AppStub')
const AppStub2 = artifacts.require('AppStub2')
const ERCProxyMock = artifacts.require('ERCProxyMock')
const KernelMock = artifacts.require('KernelMock')
const KernelOverloadMock = artifacts.require('KernelOverloadMock')

const APP_ID = hash('stub.aragonpm.test')
const ZERO_ADDR = '0x0000000000000000000000000000000000000000'
Expand Down Expand Up @@ -145,8 +145,8 @@ contract('Kernel apps', accounts => {
it("also sets the default app when using the overloaded version", async () => {
let appProxyAddr

// Create KernelMock instance so we can use the overloaded version
const kernelMock = await KernelMock.new(kernel.address)
// Create KernelOverloadMock instance so we can use the overloaded version
const kernelMock = await KernelOverloadMock.new(kernel.address)

await withAppManagerPermission(kernelMock.address, async () => {
const receipt = await kernelMock[newInstanceFn](APP_ID, appBase1.address, true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import "../../contracts/lib/misc/ERCProxy.sol";
* https://github.com/trufflesuite/truffle/issues/569
* https://github.com/trufflesuite/truffle/issues/737
*/
contract KernelMock {
contract KernelOverloadMock {
Kernel kernel;

event NewAppProxy(address proxy);

function KernelMock(address _kernel) public {
function KernelOverloadMock(address _kernel) public {
kernel = Kernel(_kernel);
}

Expand Down

0 comments on commit f63fe44

Please sign in to comment.