From cfa2376edb7abcb251d9fbf0b4a0c8c75d42ded5 Mon Sep 17 00:00:00 2001 From: Pavol Loffay Date: Sat, 28 Oct 2017 12:09:21 +0200 Subject: [PATCH] fix default test Signed-off-by: Pavol Loffay --- cmd/query/app/static_handler_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/query/app/static_handler_test.go b/cmd/query/app/static_handler_test.go index 6324d7e6d39..6a9d0602a0a 100644 --- a/cmd/query/app/static_handler_test.go +++ b/cmd/query/app/static_handler_test.go @@ -47,8 +47,9 @@ func TestStaticAssetsHandler(t *testing.T) { } func TestDefaultStaticAssetsRoot(t *testing.T) { - _, err := NewStaticAssetsHandler("", "") - assert.EqualError(t, err, "Cannot read UI static assets: open jaeger-ui-build/build/index.html: no such file or directory") + handler, err := NewStaticAssetsHandler("", "") + assert.Nil(t, handler) + assert.Nil(t, err) } func TestRegisterRoutesHandler(t *testing.T) {