From b7148adf20b31c1c35cd753ae0379a18401049ef Mon Sep 17 00:00:00 2001 From: Ryan SIU Date: Wed, 15 Jan 2020 10:56:29 +0800 Subject: [PATCH] #323 Fix the unit test --- cmd/commands_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/commands_test.go b/cmd/commands_test.go index 592ab03c..772885a4 100644 --- a/cmd/commands_test.go +++ b/cmd/commands_test.go @@ -96,7 +96,7 @@ func TestReadCmd(t *testing.T) { func TestReadWithAdvancedFilterCmd(t *testing.T) { cmd := getRootCommand() - result := test.RunCmd(cmd, "read -v examples/sample.yaml b.e(name==sam).value") + result := test.RunCmd(cmd, "read -v ../examples/sample.yaml b.e(name==sam).value") if result.Error != nil { t.Error(result.Error) } @@ -105,7 +105,7 @@ func TestReadWithAdvancedFilterCmd(t *testing.T) { func TestReadWithAdvancedFilterMapCmd(t *testing.T) { cmd := getRootCommand() - result := test.RunCmd(cmd, "read -v examples/sample.yaml b.e[name==fr*]") + result := test.RunCmd(cmd, "read -v ../examples/sample.yaml b.e[name==fr*]") if result.Error != nil { t.Error(result.Error) }