diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2023-01-27 12:37:33 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <wp32pw@gmail.com> | 2023-01-30 11:54:04 +0100 |
| commit | 9a6f477c8db8de69698177a2dfbb029451cafcd3 (patch) | |
| tree | 1e6e3c13fb89f5bb21b9da3f0fb62c46c13755df | |
| parent | b68fb8d69510beaf086b016606202badcfd2eda0 (diff) | |
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.
| -rw-r--r-- | dashboard/app/util_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
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) } } |
