mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-19 22:28:45 +05:00
Solved failing unit test in engine
This commit is contained in:
committed by
Dan Christian Bogos
parent
2aad952489
commit
13a27308cb
@@ -372,12 +372,13 @@ func TestCDRsNewMapEventFromReqForm(t *testing.T) {
|
||||
func TestCDRsNewMapEventFromReqFormErr(t *testing.T) {
|
||||
httpReq := &http.Request{
|
||||
URL: &url.URL{
|
||||
RawQuery: ";",
|
||||
RawQuery: "%0x;",
|
||||
},
|
||||
}
|
||||
_, err := newMapEventFromReqForm(httpReq)
|
||||
if err == nil || err.Error() != "invalid semicolon separator in query" {
|
||||
t.Errorf("\nExpected <invalid semicolon separator in query> \n, received <%+v>", err)
|
||||
errExpect := `invalid URL escape "%0x"`
|
||||
if err == nil || err.Error() != errExpect {
|
||||
t.Errorf("\nExpected <%+v> \n, received <%+v>", errExpect, err)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user