aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/output_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'system/output_test.go')
-rw-r--r--system/output_test.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/system/output_test.go b/system/output_test.go
index 80abcf8d..b144d79c 100644
--- a/system/output_test.go
+++ b/system/output_test.go
@@ -9,7 +9,6 @@ import (
"testing"
"hakurei.app/container"
- "hakurei.app/internal/hlog"
)
func TestOpError(t *testing.T) {
@@ -87,33 +86,6 @@ func TestOpError(t *testing.T) {
})
}
-func TestSetOutput(t *testing.T) {
- oldmsg := msg
- t.Cleanup(func() { msg = oldmsg })
- msg = nil
-
- t.Run("nil", func(t *testing.T) {
- SetOutput(nil)
- if _, ok := msg.(*container.DefaultMsg); !ok {
- t.Errorf("SetOutput: %#v", msg)
- }
- })
-
- t.Run("hlog", func(t *testing.T) {
- SetOutput(hlog.Output{})
- if _, ok := msg.(hlog.Output); !ok {
- t.Errorf("SetOutput: %#v", msg)
- }
- })
-
- t.Run("reset", func(t *testing.T) {
- SetOutput(nil)
- if _, ok := msg.(*container.DefaultMsg); !ok {
- t.Errorf("SetOutput: %#v", msg)
- }
- })
-}
-
func TestPrintJoinedError(t *testing.T) {
testCases := []struct {
name string