From c0c167cc15aa3b721c983fd775cdef7afb42de38 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 10 Dec 2013 18:25:04 -0600 Subject: [PATCH] Remove logging bits from script_test.go. The allows the tests to run without showing warning for malformed bits (which are intentionally malformed for testing purposes). Also, the tests would not compile since the new btclog backend was switched out. This commit resolves that. --- opcode_test.go | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/opcode_test.go b/opcode_test.go index d757463e..70349be3 100644 --- a/opcode_test.go +++ b/opcode_test.go @@ -6,12 +6,9 @@ package btcscript_test import ( "bytes" - "fmt" "github.com/conformal/btcscript" "github.com/conformal/btcwire" - "github.com/conformal/seelog" "github.com/davecgh/go-spew/spew" - "os" "testing" ) @@ -520,14 +517,6 @@ func testScript(t *testing.T, script []byte, canonical bool) (err error) { } func TestScripts(t *testing.T) { - log, err := seelog.LoggerFromWriterWithMinLevel(os.Stdout, - seelog.InfoLvl) - if err != nil { - fmt.Fprintf(os.Stderr, "failed to create logger: %v", err) - return - } - defer log.Flush() - btcscript.UseLogger(log) // for each entry in the list for i := range opcodeTests { shouldPass := opcodeTests[i].shouldPass