After dbtng was committed the dblog tests now has two exceptions:

DBLog functionality: 309 passes, 0 fails, 2 exceptions

overall impressive that we still stand at:

4775 passes, 0 fails, 2 exceptions
CommentFileSizeAuthor
#4 298444-2.patch2.03 KBc960657

Comments

boombatower’s picture

Component: simpletest.module » tests
boombatower’s picture

Priority: Normal » Critical

Still fails:

Undefined property: stdClass::$wid	Notice	dblog.test	224		
Undefined property: stdClass::$wid	Notice	dblog.test	224

To be consistent with other test failures marking as critical.

lilou’s picture

Title: DBLog test fails » DBLog tests exceptions
c960657’s picture

Status: Active » Needs review
StatusFileSize
new2.03 KB

This removes the two exceptions.

The ids weren't being used for anything except for finding the number of rows, so I just did a COUNT(*) instead. The same approach could be applied later in the same function, but I assume that people prefer this patch to land soon in order to get rid of the last failed tests, so I tried not to solve too many problems in one patch.

lilou’s picture

I run DBlog test : 309 passes, 0 fails, 0 exceptions

webchick’s picture

I would like to commit this as soon as it's RTBC so we go back to 100% test passing. It'd be great if Larry (Crell) and/or Jimmy (boombatower) could take a look. But it seems like it's simplifying the test, which is a good thing. The one thing I question is whether there's a more "PDO-like" way to do the count.

boombatower’s picture

Code looks fine, I'm not an expert on PDO stuff so it would be nice if Crell would take a look or someone with better knowledge in that area.

catch’s picture

Looks fine and also fixes the exception for me, but I'm not that familiar with the new db layer either.

catch’s picture

Status: Needs review » Reviewed & tested by the community

I think Crell's away at the moment, so I'm bumping this to RTBC, we can ping him when we get back to make sure it's OK and it looks like a decent cleanup anyway.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

I did some Googling and can't really find anything to refute this method of doing counts, so committed. Thanks!

webchick’s picture

Status: Fixed » Active

Hrm. This seems to have cropped up again...

Two of these:
Undefined property: stdClass::$wid
Undefined property: stdClass::$wid

...on line 224.

c960657’s picture

Is this line 224 in dblog.test? Which CVS revision? In HEAD, line 224 is a comment, right?

damien tournoud’s picture

@webchick: I can't reproduce, neither running only the DBLog test nor running the whole test suite. Could you give us more information about the error?

webchick’s picture

Status: Active » Postponed (maintainer needs more info)

Sure, I'll look into it more this evening. Could've been a fluke.

c960657’s picture

Component: tests » dblog.module
Status: Postponed (maintainer needs more info) » Fixed

Looks like this was just a fluke, so I am setting this back to fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.