https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40962
--- Comment #4 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 195746 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=195746&action=edit Bug 40962: Fix race condition in OAI Server test for OpacHiddenItems The 'Tests for OpacHiddenItems' subtest captured Perl's wall clock time *after* calling build_sample_item(), then used that timestamp as both the expected OAI datestamp and the 'from' filter. On slow systems the INSERT can straddle a second boundary, so MySQL records T:40 while dt_from_string returns T:41, causing noRecordsMatch on the ListRecords tests and a datestamp mismatch on the GetRecord tests. Fix by calling $item->discard_changes and deriving $utc_timestamp from the timestamp MySQL actually assigned, matching the pattern already used in the Bug 19725 subtest in the same file. Signed-off-by: Martin Renvoize <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
