Remove factory usage from test

This commit is contained in:
Chris Roberts 2021-08-05 11:17:37 -07:00 committed by Paul Hinze
parent e7c1584822
commit 4de0da5749
No known key found for this signature in database
GPG Key ID: B69DEDF2D55501C0

View File

@ -79,12 +79,6 @@ func TestBasis(t testing.T, opts ...BasisOption) (b *Basis) {
WithBasisRef(&vagrant_plugin_sdk.Ref_Basis{Name: "test-basis"}),
}
// Create the default factory for all component types
for typ := range TestingTypeMap {
f, _ := TestFactorySingle(t, typ, "test-basis")
defaultOpts = append(defaultOpts, WithFactory(typ, f))
}
b, _ = NewBasis(context.Background(), append(defaultOpts, opts...)...)
return
}