should be
Data = boss_db:find(caller, [{tname, 'equals', list_to_binary("player1")}]
With this changes, the functional test working as expected, no error 500 anymore.
but i wonder how to see the error message trace in func test? it not show the stack, but it seems use the production setup which look for the 500 error tempate.
I have 500 error handling function, and when i disable it to make CB use default 500 error, it complain no 500 error template setup.
so i am in the dark try to figure out why functional test and dev code test manually are different result.
Is this expected to be a binary data feed to the boss_db find on functional test.
Hope this helps with other using the test driven development with CB :).
Thanks