htlcswitch/hodl: switch from debug tag to dev

This commit is contained in:
Conner Fromknecht committed 2018-10-05 13:04:45 +09:00
1 parent 3403794e81
commit ece3051237
5 files changed
+8 -13

No files matched your search

+3 -2
View File
@@ -3,6 +3,7 @@ package hodl_test
import (
"testing"
"github.com/lightningnetwork/lnd/build"
"github.com/lightningnetwork/lnd/htlcswitch/hodl"
)
@@ -87,8 +88,8 @@ var hodlMaskTests = []struct {
// correctly reports active for flags in the tests' expected flags, and inactive
// for all others.
func TestMask(t *testing.T) {
if !hodl.DebugBuild {
t.Fatalf("htlcswitch tests must be run with '-tags debug'")
if !build.IsDevBuild() {
t.Fatalf("htlcswitch tests must be run with '-tags=dev'")
}
for i, test := range hodlMaskTests {