diff --git a/elfparser/ElfTestSuite/y_0000_basic_get.l2 b/elfparser/ElfTestSuite/y_0000_basic_get.l2 index c521a662..ae5913c8 100644 --- a/elfparser/ElfTestSuite/y_0000_basic_get.l2 +++ b/elfparser/ElfTestSuite/y_0000_basic_get.l2 @@ -1,2 +1,2 @@ GET -https://google.com \ No newline at end of file +http://httpbin.org/get \ No newline at end of file diff --git a/tests/cli_test.go b/tests/cli_test.go index 75f1fa96..e62ba480 100644 --- a/tests/cli_test.go +++ b/tests/cli_test.go @@ -16,12 +16,15 @@ func TestCmdBasic(t *testing.T) { o := *lama2cmd.GetAndValidateCmd(ipArgs) expected := lama2cmd.Opts{ - Verbose: []bool{true}, Nocolor: false, Positional: struct { + Verbose: []bool{true}, + Nocolor: false, + Env: "UNSET", + Positional: struct { LamaAPIFile string }{LamaAPIFile: "../elfparser/ElfTestSuite/y_0000_basic_get.l2"}, } if !reflect.DeepEqual(o, expected) { - t.Errorf("Unsuccessful parsing basic CLI options") + t.Errorf("Unsuccessful parsing basic CLI options.\nExpected:\n%v\nGot:\n%v", expected, o) } }