mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Use require/assert.Empty instead of require/assert.Len(t, X, 0) (#13413)
This commit is contained in:
@@ -517,7 +517,7 @@ func TestMergeWithSlices(t *testing.T) {
|
||||
// of course this won't change merged, even if it did copy... but just in case.
|
||||
m2 = append(m2, "test")
|
||||
assert.Len(t, m2, 1)
|
||||
assert.Len(t, merged, 0)
|
||||
assert.Empty(t, merged)
|
||||
})
|
||||
|
||||
t.Run("slice is not copied. change in patch will not affect merged", func(t *testing.T) {
|
||||
|
||||
@@ -23,7 +23,7 @@ func TestStringArrayIntersection(t *testing.T) {
|
||||
"def",
|
||||
}
|
||||
|
||||
assert.Len(t, StringArrayIntersection(a, b), 0)
|
||||
assert.Empty(t, StringArrayIntersection(a, b))
|
||||
assert.Len(t, StringArrayIntersection(a, c), 1)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user