On Tue, Dec 28, 2010 at 17:10, Rob <[email protected]> wrote:
> We have several unit tests for our Elixir-based app.  One of them is
> failing after calling an external program (also elixir-based), which
> modifies the row.  An email address field with a default='', is
> returned from the instance as empty string, while in reality it has
> been set to some real email address.
>
> This occurs intermittently!
>
> Is it customary to call "expunge_all" after an external program
> modifies the database?

> The unit test framework is somewhat unique in that it sets
> elixir.metadata.bind only once and then in the setUp for each test, it
> drops all tables and constraints and re-runs the individual test.
>
> If I change the setUp to re-bind each time, it seems the problem goes
> away.

Can't say much without seeing some code. This smells like a thread
problem. If you are using a sqlite in-memory database, look no further
(they are thread-local).

Hope it helps,
-- 
Gaëtan de Menten

-- 
You received this message because you are subscribed to the Google Groups 
"SQLElixir" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlelixir?hl=en.

Reply via email to