-
Notifications
You must be signed in to change notification settings - Fork 51
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
fix: Error when attempting to insert value into relationship field #632
Conversation
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestSaveErrorsGivenUnknownField(t *testing.T) { | ||
func TestUpdateSaveErrorsGivenUnknownField(t *testing.T) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test also got renamed to distinguish it from the Create tests, I lazily showed this into the (first?) commit
adfd73c
to
61d96ea
Compare
[]byte( | ||
`{ | ||
"Name": "Painted House", | ||
"Author": "ValueDoesntMatter" | ||
}`, | ||
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[]byte( | |
`{ | |
"Name": "Painted House", | |
"Author": "ValueDoesntMatter" | |
}`, | |
), | |
[]byte( | |
`{ | |
"Name": "Painted House", | |
"Author": "ValueDoesntMatter" | |
}`, | |
), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Decouples them from thequery integration tests, allowing for a more focused interface and the removal of some complication from the query tests too.
61d96ea
to
a995cad
Compare
a995cad
to
8cf0cb0
Compare
…ourcenetwork#632) * Simplify collection integration tests Decouples them from thequery integration tests, allowing for a more focused interface and the removal of some complication from the query tests too. * Error when trying to save value to relation field
Relevant issue(s)
Resolves #105
Description
Errors when attempting to insert value into relationship field instead of permitting the save (and then failing to read the relationship on query).
Also reworks the newish collection test framework - splitting it off from the query framework allowing both to be simplified. This does mean that collection tests will not go through the change-detector, and will only run against badger-IM - I don't see that as loss atm, but please discuss if you think otherwise.