Skip to content

Commit

Permalink
chore: apply strict equal comparison
Browse files Browse the repository at this point in the history
Signed-off-by: Shiwei Zhang <[email protected]>
  • Loading branch information
shizhMSFT committed Mar 16, 2024
1 parent 631b369 commit 33f0657
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion conformance/04_management_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,16 @@ var test04ContentManagement = func() {
Equal(http.StatusNotFound),
Equal(http.StatusOK),
))
expectTags := numTags - 1
if resp.StatusCode() == http.StatusOK {
tagList := &TagList{}
jsonData := []byte(resp.String())
err = json.Unmarshal(jsonData, tagList)
Expect(err).To(BeNil())
Expect(len(tagList.Tags)).To(BeNumerically("<", numTags))
Expect(len(tagList.Tags)).To(Equal(expectTags))
}
if resp.StatusCode() == http.StatusNotFound {
Expect(expectTags).To(Equal(0))
}
})
})
Expand Down

0 comments on commit 33f0657

Please sign in to comment.