Hi
I have a unit test in one class that works on my local box, but fails when I run it on my continuous integration server. Seems to be an issue with Groovy Math. Below is the message I get from the failing unit test:
time marker offsets check expected:<[0, 100, 200, 300, 400, 500, 600, 700]> but was:<[0, 100, 201, 301, 402, 502, 603, 700]>
I am expecting an array of integers where that are multiples of 100 to be returned by a certain calculation. I have conditioned the data so that I am assured of getting back integer values, usually multiples of 100 or 10 depending on the scenario I am running. I can't understand why this is failing. What is even stranger is that within the same test class, I have multiple scenarios all setup similar to this, to test different variants. The other variants all work - I just have issues with this one test.
It's almost like there is a code gen issue within Groovy. This test class has been working fine for months, and about two weeks ago I added some new test methods, as I had added some new methods to the CUT. Ever since then, I have not been able to successfully run all the tests on this class on my CI server, even though I see no issues from my development box.
I am using Groovy 1.6.5. Thinking of going to 1.6.7 or 1.6.8 to see if that makes a difference.
Does anyone have any ideas of what I can look at to track down what the issue might be?
David Weiler-Thiessen
Nestlé Purina PetCare
phone: 306-933-0232
cell: 306-291-9770
This e-mail, its electronic document attachments, and the contents of its website linkages may contain confidential information. This information is intended solely for use by the individual or entity to whom it is addressed. If you have received this information in error, please notify the sender immediately and promptly destroy the material and any accompanying attachments from your system.