mirror of
https://github.com/LukeHagar/libopenapi.git
synced 2025-12-10 04:20:24 +00:00
removing ineffectual assignments in tests
This commit is contained in:
@@ -87,7 +87,7 @@ func TestBuildPath_WithTrailingPeriod(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFindNodesWithoutDeserializing(t *testing.T) {
|
||||
root, err := FindNodes(getPetstore(), "$")
|
||||
root, _ := FindNodes(getPetstore(), "$")
|
||||
nodes, err := FindNodesWithoutDeserializing(root[0], "$.info.contact")
|
||||
assert.NoError(t, err)
|
||||
assert.NotNil(t, nodes)
|
||||
@@ -95,7 +95,7 @@ func TestFindNodesWithoutDeserializing(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFindNodesWithoutDeserializing_InvalidPath(t *testing.T) {
|
||||
root, err := FindNodes(getPetstore(), "$")
|
||||
root, _ := FindNodes(getPetstore(), "$")
|
||||
nodes, err := FindNodesWithoutDeserializing(root[0], "I love a good curry")
|
||||
assert.Error(t, err)
|
||||
assert.Nil(t, nodes)
|
||||
|
||||
Reference in New Issue
Block a user