mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-03-26 00:31:04 +01:00
htlcswitch: verify test are running with "debug" tag
Per team decision all tests should run with "debug" flag. Makefile updated accordingly. A developer may still run the test from command line by "go test ...." The commit protects against this and issue an error if needed.
This commit is contained in:
parent
92be757223
commit
6e8dd9e00f
1 changed files with 7 additions and 0 deletions
|
@ -1758,6 +1758,9 @@ func updateState(batchTick chan time.Time, link *channelLink,
|
|||
// TODO(roasbeef): add sync hook into packet processing so can eliminate all
|
||||
// sleep in this test and the one below
|
||||
func TestChannelLinkBandwidthConsistency(t *testing.T) {
|
||||
if !hodl.DebugBuild {
|
||||
t.Fatalf("htlcswitch tests must be run with '-tags debug")
|
||||
}
|
||||
t.Parallel()
|
||||
|
||||
// TODO(roasbeef): replace manual bit twiddling with concept of
|
||||
|
@ -2693,6 +2696,10 @@ func TestChannelLinkTrimCircuitsPending(t *testing.T) {
|
|||
// TestChannelLinkTrimCircuitsNoCommit checks that the switch and link properly trim
|
||||
// circuits if the ADDs corresponding to open circuits are never committed.
|
||||
func TestChannelLinkTrimCircuitsNoCommit(t *testing.T) {
|
||||
if !hodl.DebugBuild {
|
||||
t.Fatalf("htlcswitch tests must be run with '-tags debug")
|
||||
}
|
||||
|
||||
t.Parallel()
|
||||
|
||||
const (
|
||||
|
|
Loading…
Add table
Reference in a new issue