mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-04 07:07:11 +00:00
fix empty rule from testifylint
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
This commit is contained in:
@@ -190,7 +190,7 @@ func Test_getDataPathConfigs(t *testing.T) {
|
||||
s.getDataPathConfigs()
|
||||
assert.Equal(t, test.expectConfigs, s.dataPathConfigs)
|
||||
if test.expectLog == "" {
|
||||
assert.Equal(t, "", logBuffer)
|
||||
assert.Empty(t, logBuffer)
|
||||
} else {
|
||||
assert.Contains(t, logBuffer, test.expectLog)
|
||||
}
|
||||
@@ -408,7 +408,7 @@ func Test_getDataPathConcurrentNum(t *testing.T) {
|
||||
num := s.getDataPathConcurrentNum(defaultNum)
|
||||
assert.Equal(t, test.expectNum, num)
|
||||
if test.expectLog == "" {
|
||||
assert.Equal(t, "", logBuffer)
|
||||
assert.Empty(t, logBuffer)
|
||||
} else {
|
||||
assert.Contains(t, logBuffer, test.expectLog)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user