Skip to content

Commit 2ca3a51

Browse files
committed
test: add somes missing tests to deepcopy
1 parent daecef7 commit 2ca3a51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/factory/factory_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ func (suite *testSuiteFactory) TestGoTempalteValue() {
164164

165165
func (suite *testSuiteFactory) TestFactoryDeepCopy() {
166166
var factory = newFactory(&fakeFactory{})
167-
var factory2 = factory.DeepCopy()
167+
factory.WithConfig(map[string]interface{}{"name": "test"})
168168

169-
suite.NotSame(factory, factory2)
169+
suite.NotSame(factory, factory.DeepCopy())
170170
}

0 commit comments

Comments
 (0)