mirror of
https://github.com/MontFerret/ferret.git
synced 2025-12-07 22:32:35 +02:00
Fixes and changes 2 (#614)
* feat(core): added SourceErrorDetail * fix(driver): fix sets user headers and cookies * fix(driver): check users params on nil * fix formating * fix(tests): fix tests and change SourceErrorDetail
This commit is contained in:
@@ -61,7 +61,7 @@ func TestParameterExpressionExec(t *testing.T) {
|
||||
value, err := notExistExp.Exec(ctx, &core.Scope{})
|
||||
|
||||
So(err, ShouldNotBeNil)
|
||||
So(err, ShouldHaveSameTypeAs, core.ErrNotFound)
|
||||
So(err.(*core.SourceErrorDetail).BaseError, ShouldHaveSameTypeAs, core.ErrNotFound)
|
||||
So(value.Type().Equals(types.None), ShouldBeTrue)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user