hooklift/gowsdl

Failing test TestEPCISWSDL

sblackstone opened this issue · 2 comments

Using Go 1.20

It seems like its looking for an exact match to a sample file, but the output has changed slightly...

image

It's not clear to me what this is attempting to test or how to resolve it....

The test output is this:

--- FAIL: TestEPCISWSDL (0.01s)
    gowsdl_test.go:320: got source ./fixtures/epcis/epcisquery_gen.src but expected ./fixtures/epcis/epcisquery.src

I went through with git bisect and found the original commit that broke that test to be 9a29f8e . This is problematic, because that commit created that test as well. So it seems it was never passing.

3aaab23 has the message "fix broken tests" but the tests still fail on that commit despite the adjustments made.

From looking at the content of the WSDL, the current generated source epciquery_gen.src should be correct; the core issue being the xml.Name member being added, which reflects the structure of the WSDL.