1
0
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:
Roman
2021-04-09 16:58:42 +03:00
committed by GitHub
parent 80c278ec6c
commit 46009da1e7
5 changed files with 78 additions and 30 deletions

View File

@@ -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)
})
}