fixed some errors from linter

This commit is contained in:
a.pivkin
2025-12-23 06:49:59 +03:00
parent 20a59dceae
commit 54ce83f458
4 changed files with 14 additions and 20 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
package tests
import (
"rbd_exporter/RBDFactory"
"rbd_exporter/rbdfactory"
mock "rbd_exporter/mytypes/mock"
"testing"
@@ -30,7 +30,7 @@ func TestRBDFactory(t *testing.T) {
MockRBDImager.EXPECT().Stat().Return(expectedImageInfo,nil)
result,err := RBDFactory.RBDFacroty(MockIOContexter,rbdName)
result,err := rbdfactory.RBDFacroty(MockIOContexter,rbdName)
require.NoError(t, err)
assert.Equal(t, rbdName, result.Name)
@@ -62,7 +62,7 @@ func TestPoolFactory(t *testing.T) {
mockImage.EXPECT().Stat().Return(expectedImageInfo, nil)
}
result, err := RBDFactory.PoolFactory(mockCephConn, poolName)
result, err := rbdfactory.PoolFactory(mockCephConn, poolName)
require.NoError(t, err)
assert.Equal(t, poolName, result.Name)