From 9a6f477c8db8de69698177a2dfbb029451cafcd3 Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Fri, 27 Jan 2023 12:37:33 +0100 Subject: dashboard: make expectOK more elaborate Now it's quite difficult to recognize it in the dashboard testing logs, especially when the error message itself is not very clear. --- dashboard/app/util_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dashboard/app/util_test.go b/dashboard/app/util_test.go index d01fb0d27..a0fce8d16 100644 --- a/dashboard/app/util_test.go +++ b/dashboard/app/util_test.go @@ -85,7 +85,7 @@ func NewCtx(t *testing.T) *Ctx { func (c *Ctx) expectOK(err error) { if err != nil { c.t.Helper() - c.t.Fatal(err) + c.t.Fatalf("expected OK, got error: %v", err) } } -- cgit mrf-deployment