Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests ignore expected message field. When not ignored, tests actually fail. Currently tests pass when they should not. #1406

Closed
draksler opened this issue Jul 17, 2020 · 7 comments

Comments

@draksler
Copy link

tests in TestBadRequests in auction_test.go (and a few others) are ignoring the expected message field due to the gr.description != "" condition.
If the condition is removed, and the messages are actually validated, the tests fail.

@SyntaxNode
Copy link
Contributor

Nice find. I'm looking into this. I don't know why a condition like gr.description != "" exists at all.

@SyntaxNode
Copy link
Contributor

We're working to fix this. Looks like there are two tests which aren't running and should. The other failures with removing that condition are due to unclear setup. This was probably our first pass at json based tests.

@stale
Copy link

stale bot commented Aug 22, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Aug 22, 2020
@SyntaxNode
Copy link
Contributor

The test setup in that package is a mix of json and code configuration. It's really difficult to follow. @guscarreon has rewritten them in a much cleaner style with all setup expressed in the json files, as we do for other parts of the code. I'll close this ticket when #1450 is merged.

1 similar comment
@SyntaxNode
Copy link
Contributor

SyntaxNode commented Sep 12, 2020

The test setup in that package is a mix of json and code configuration. It's really difficult to follow. @guscarreon has rewritten them in a much cleaner style with all setup expressed in the json files, as we do for other parts of the code. I'll close this ticket when #1450 is merged.

@stale stale bot removed the stale label Sep 12, 2020
@stale
Copy link

stale bot commented Oct 12, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Oct 12, 2020
@SyntaxNode
Copy link
Contributor

auction_test.go has been completely refactored to resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants