aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/app_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/app/app_test.go')
-rw-r--r--internal/app/app_test.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/internal/app/app_test.go b/internal/app/app_test.go
index ab94b1ca..8b54b4e2 100644
--- a/internal/app/app_test.go
+++ b/internal/app/app_test.go
@@ -11,7 +11,6 @@ import (
"hakurei.app/hst"
"hakurei.app/internal/app"
"hakurei.app/internal/app/state"
- "hakurei.app/internal/hlog"
"hakurei.app/internal/sys"
"hakurei.app/system"
)
@@ -37,8 +36,11 @@ func TestApp(t *testing.T) {
)
if !t.Run("seal", func(t *testing.T) {
if sa, err := a.Seal(tc.config); err != nil {
- hlog.PrintBaseError(err, "got generic error:")
- t.Errorf("Seal: error = %v", err)
+ if s, ok := container.GetErrorMessage(err); !ok {
+ t.Errorf("Seal: error = %v", err)
+ } else {
+ t.Errorf("Seal: %s", s)
+ }
return
} else {
gotSys, gotContainer = app.AppIParams(a, sa)