fix: test uses core.New() directly — no .Value unwrap
Co-Authored-By: Virgil <virgil@lethean.io>
This commit is contained in:
parent
b6f73dbdd2
commit
60b0b0b63b
1 changed files with 1 additions and 1 deletions
|
|
@ -190,7 +190,7 @@ func TestSetCore_Good(t *testing.T) {
|
|||
s := &PrepSubsystem{}
|
||||
assert.Nil(t, s.core)
|
||||
|
||||
c := core.New(core.WithOption("name", "test")).Value.(*core.Core)
|
||||
c := core.New(core.WithOption("name", "test"))
|
||||
s.SetCore(c)
|
||||
assert.NotNil(t, s.core)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue