Skip to content

Commit 7636ffd

Browse files
committed
test: fix error messages
1 parent 39f859a commit 7636ffd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/context.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (ctx *Context) NotifySpend(tx *wire.MsgTx, inputIndex uint32) {
6161
SpenderInputIndex: inputIndex,
6262
}:
6363
case <-time.After(Timeout):
64-
ctx.T.Fatalf("htlc spend not consumed")
64+
ctx.T.Fatalf("spend not consumed")
6565
}
6666
}
6767

@@ -74,7 +74,7 @@ func (ctx *Context) NotifyConf(tx *wire.MsgTx) {
7474
Tx: tx,
7575
}:
7676
case <-time.After(Timeout):
77-
ctx.T.Fatalf("htlc spend not consumed")
77+
ctx.T.Fatalf("confirmation not consumed")
7878
}
7979
}
8080

@@ -86,7 +86,7 @@ func (ctx *Context) AssertRegisterSpendNtfn(script []byte) {
8686
case spendIntent := <-ctx.Lnd.RegisterSpendChannel:
8787
require.Equal(
8888
ctx.T, script, spendIntent.PkScript,
89-
"server not listening for published htlc script",
89+
"server not listening for published script",
9090
)
9191

9292
case <-time.After(Timeout):
@@ -134,7 +134,7 @@ func (ctx *Context) AssertRegisterConf(expectTxHash bool, confs int32) *ConfRegi
134134
require.Equal(ctx.T, confs, confIntent.NumConfs)
135135

136136
case <-time.After(Timeout):
137-
ctx.T.Fatalf("htlc confirmed not subscribed to")
137+
ctx.T.Fatalf("tx confirmed not subscribed to")
138138
}
139139

140140
return confIntent
@@ -249,7 +249,7 @@ func (ctx *Context) GetOutputIndex(tx *wire.MsgTx,
249249
}
250250
}
251251

252-
ctx.T.Fatal("htlc not present in tx")
252+
ctx.T.Fatal("the output not present in tx")
253253
return 0
254254
}
255255

0 commit comments

Comments
 (0)