launchpad-dev team mailing list archive
-
launchpad-dev team
-
Mailing list archive
-
Message #05349
Re: Problems with FeatureFlags and test isolation
On 28 October 2010 11:24, Deryck Hodge <deryck.hodge@xxxxxxxxxxxxx> wrote:
> Hi, Michael.
>
> I haven't gotten it working yet. I've only been able to poke at it
> here and there with UDS. I have narrowed it down to the following:
>
> When the test is run by itself, I see:
>
> (Pdb) per_thread.features._rules
> {'malone.advanced-subscriptions.enabled': [('default', 999, u'on')]}
>
> When the test is run as part of all the browser tests, I see:
>
> (Pdb) per_thread.features._rules
> {}
>
> So I assume _rules is set in a different thread then the one in which
> the tests are running when the test is run in a group of tests. I
> haven't worked out what to do about this yet, and haven't caught
> Martin of Robert about it yet.
That sounds plausible, though it also sounds like a different issue to
what gmb was originally hitting. Perhaps the browser tests call back
into the web app on a separate thread, or in a different database
transaction? (Though it seems like that would break some code that
writes to the db and then tries to see it from a browser.)
I'll try to find you today...
--
Martin
Follow ups
References