Letractively / wro4j

Automatically exported from code.google.com/p/wro4j
0 stars 0 forks source link

Tests fail on Windows #868

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Based on Travis saying that all the tests pass, I'm assuming that the test 
failures I'm seeing are because I'm on Windows.

The 4 tests that fail are:
Failed tests:
  testMD5Fingerprint(ro.isdc.wro.manager.TestWroManager): expected:<[9394d6cdd0a75a5f695c84eda410103f]/g3.css?minimize=tru...> but was:<[dcafadd7f368bc95d003eae8e876a324]/g3.css?minimize=tru...>
  testCRC32Fingerprint(ro.isdc.wro.manager.TestWroManager): expected:<[1d62dbaf]/g3.css?minimize=tru...> but was:<[3be24cf6]/g3.css?minimize=tru...>
  testSHA1DefaultHashBuilder(ro.isdc.wro.manager.TestWroManager): expected:<[aebaedcdec8131230d47259be7a628b5dfeff6ba]/g3.css?minimize=tru...> but was:<[6c76dfce26865e6d47a8038e79350ed87211cfdf]/g3.css?minimize=tru...>
  shouldGenerateCorrectDataURIForCSSWithCharset(ro.isdc.wro.model.resource.processor.support.TestDataUriGenerator): expected:<...,aW5wdXQuYnV0dG9uIHs[KCWJhY2tncm91bmQ6IHVybChodHRwOi8vd3JvNGouZ29vZ2xlY29kZS5jb20vc3ZuL3dpa2kvaW1nL2ZvbGRlclN0cnVjdHVyZS5wbmcpOwoJYmFja2dyb3VuZC1pbWFnZTogdXJsKCJodHRwOi8vd3JvNGouZ29vZ2xlY29kZS5jb20vc3ZuL3dpa2kvaW1nL2ZvbGRlclN0cnVjdHVyZS5wbmciKTsKCWZpbHRlcjogcHJvZ2lkOkRYSW1hZ2VUcmFuc2Zvcm0uTWljcm9zb2Z0LkFscGhhSW1hZ2VMb2FkZXIoc3JjPSdodHRwOi8vd3JvNGouZ29vZ2xlY29kZS5jb20vc3ZuL3dpa2kvaW1nL2ZvbGRlclN0cnVjdHVyZS5wbmcnLCBzaXppbmdNZXRob2Q9J3NjYWxlJyk7Cn0KLm11bHRpbGluZUFuZFNwYWNlcyB7CiAgYm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UuY29tL3N2bi93aWtpL2ltZy9mb2xkZXJTdHJ1Y3R1cmUucG5nICIgKSAgICAgDQp9DQpAZm9udC1mYWNlIHsNCiAgICBzcmM6IHVybChodHRwOi8vd3JvNGouZ29vZ2xlY29kZS5jb20vc3ZuL3dpa2kvaW1nL2ZvbGRlclN0cnVjdHVyZS5wbmcpOw0KfQ==]>

Original issue reported on code.google.com by candrews...@gmail.com on 3 Apr 2014 at 9:43

GoogleCodeExporter commented 9 years ago
These tests fails because of the difference of line ending characters between 
windows and Unix which cause generation of different hash. 

A possible solution is to run those tests only on unix platform.

Original comment by alex.obj...@gmail.com on 29 Apr 2014 at 7:12