Skip to content

Commit 33f0657

Browse files
committed
chore: apply strict equal comparison
Signed-off-by: Shiwei Zhang <[email protected]>
1 parent 631b369 commit 33f0657

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

conformance/04_management_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,12 +135,16 @@ var test04ContentManagement = func() {
135135
Equal(http.StatusNotFound),
136136
Equal(http.StatusOK),
137137
))
138+
expectTags := numTags - 1
138139
if resp.StatusCode() == http.StatusOK {
139140
tagList := &TagList{}
140141
jsonData := []byte(resp.String())
141142
err = json.Unmarshal(jsonData, tagList)
142143
Expect(err).To(BeNil())
143-
Expect(len(tagList.Tags)).To(BeNumerically("<", numTags))
144+
Expect(len(tagList.Tags)).To(Equal(expectTags))
145+
}
146+
if resp.StatusCode() == http.StatusNotFound {
147+
Expect(expectTags).To(Equal(0))
144148
}
145149
})
146150
})

0 commit comments

Comments
 (0)