#2260 closed defect (fixed)

TestMessages fails

Reported by: Nicklas Nordborg Owned by: everyone
Priority: major Milestone: BASE 3.19
Component: core Version:
Keywords: Cc:


--List messages FAILED
net.sf.basedb.core.BaseException: Expected 2 results, not 0
        at TestMessage.test_list(TestMessage.java:137)
        at TestMessage.test_all(TestMessage.java:50)
        at TestMessage.main(TestMessage.java:37)

I think this is related to the fix for #2249. The query used for listing messages doesn't have the Owned by others option enabled. But, when Message.getQuery(User) is called with a different user (than the one that is logged in) we should enable this option.

I think there is a similar bug for Sessions and Devices.

Change History (1)

comment:1 Changed 22 months ago by Nicklas Nordborg

Resolution: fixed
Status: newclosed

In 7996:

Fixes #2260: TestMessages? fails

Note: See TracTickets for help on using tickets.