http://bugzilla.novell.com/show_bug.cgi?id=543555 User kkaempf@novell.com added comment http://bugzilla.novell.com/show_bug.cgi?id=543555#c3 Klaus Kämpf <kkaempf@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|CLOSED |REOPENED Resolution|WORKSFORME | Target Milestone|--- |Factory --- Comment #3 from Klaus Kämpf <kkaempf@novell.com> 2009-10-07 01:59:23 MDT --- Yeah, its a 'Heisenbug' ;-) It only happens from time to time. Do e.g. a puts xml.target!.inspect and you'll see that the values being compared are indeed strings The attributes of a node are kept as hashes internally. The current test relies on hash ordering, which Ruby does not guarantee. What you can do is either - don't use Builder::XmlMarkup.new but parse packets.to_xml() (using REXML) and check if expected nodes and attributes are present or - parse the string representation (again, using REXML) to a real XML object and rely on XML comparison. (I do not know if REXML supports comparison, so the first option seems to be more reliable to me) Reopening -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.