Skip to content

Commit a2161c6

Browse files
committed
Fixup: test setOutcome call
Signed-off-by: Matthias Geihs <matthias@perun.network>
1 parent ca79702 commit a2161c6

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/test/AssetHolder.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,26 +101,26 @@ export function genericAssetHolderTest(setup: AssetHolderSetup) {
101101
it("wrong parts length", async () => {
102102
const wrongParts = [setup.parts[setup.A]]
103103
await truffleAssert.reverts(
104-
setup.ah.setOutcome(setup.channelID, wrongParts, finalBalance, { from: setup.adj }),
104+
setup.ah.setOutcome(setup.channelID, wrongParts, finalBalance, false, { from: setup.adj }),
105105
);
106106
});
107107

108108
it("wrong balances length", async () => {
109109
const wrongBals = [ether(1)]
110110
await truffleAssert.reverts(
111-
setup.ah.setOutcome(setup.channelID, setup.parts, wrongBals, { from: setup.adj }),
111+
setup.ah.setOutcome(setup.channelID, setup.parts, wrongBals, false, { from: setup.adj }),
112112
);
113113
});
114114

115115
it("wrong sender", async () => {
116116
await truffleAssert.reverts(
117-
setup.ah.setOutcome(setup.channelID, setup.parts, finalBalance, { from: setup.txSender }),
117+
setup.ah.setOutcome(setup.channelID, setup.parts, finalBalance, false, { from: setup.txSender }),
118118
);
119119
});
120120

121121
it("correct sender", async () => {
122122
truffleAssert.eventEmitted(
123-
await setup.ah.setOutcome(setup.channelID, setup.parts, finalBalance, { from: setup.adj }),
123+
await setup.ah.setOutcome(setup.channelID, setup.parts, finalBalance, false, { from: setup.adj }),
124124
'OutcomeSet',
125125
(ev: any) => { return ev.channelID == setup.channelID }
126126
);
@@ -133,7 +133,7 @@ export function genericAssetHolderTest(setup: AssetHolderSetup) {
133133

134134
it("correct sender (twice)", async () => {
135135
await truffleAssert.reverts(
136-
setup.ah.setOutcome(setup.channelID, setup.parts, finalBalance, { from: setup.adj })
136+
setup.ah.setOutcome(setup.channelID, setup.parts, finalBalance, false, { from: setup.adj })
137137
);
138138
});
139139
})
@@ -187,7 +187,7 @@ export function genericAssetHolderTest(setup: AssetHolderSetup) {
187187
it("set outcome of the asset holder with deposit refusal", async () => {
188188
assert(await setup.ah.settled.call(channelID) == false);
189189
truffleAssert.eventEmitted(
190-
await setup.ah.setOutcome(channelID, setup.parts, finalBalance, { from: setup.adj }),
190+
await setup.ah.setOutcome(channelID, setup.parts, finalBalance, false, { from: setup.adj }),
191191
'OutcomeSet',
192192
(ev: any) => { return ev.channelID == channelID; }
193193
);

0 commit comments

Comments
 (0)