Hi all
I am using bypass to create a http mock server for test.
setup do
bypass = Bypass.open(port: 3000)
{:ok, bypass: bypass}
end
As you can see, the port is set to 3000 and when I start the test, I’ve got following error:
1) test Handle user login. (SapOdataService.Auth.UserLoginTest)
test/auth/user_login_test.exs:31
** (UndefinedFunctionError) function Bypass.open/1 is undefined or private. Did you mean one of:
* open/0
stacktrace:
(bypass) Bypass.open([port: 3000])
test/auth/user_login_test.exs:9: SapOdataService.Auth.UserLoginTest.__ex_unit_setup_0/1
test/auth/user_login_test.exs:1: SapOdataService.Auth.UserLoginTest.__ex_unit__/2
What am I doing wrong?
Thanks