mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-24 13:46:43 +00:00
node: using reflect.TypeFor
This commit is contained in:
parent
d4a3bf1b23
commit
23e566ae00
1 changed files with 1 additions and 1 deletions
|
|
@ -364,7 +364,7 @@ func TestLifecycleTerminationGuarantee(t *testing.T) {
|
|||
if err, ok := err.(*StopError); !ok {
|
||||
t.Fatalf("termination failure mismatch: have %v, want StopError", err)
|
||||
} else {
|
||||
failer := reflect.TypeOf(&InstrumentedService{})
|
||||
failer := reflect.TypeFor[*InstrumentedService]()
|
||||
if err.Services[failer] != failure {
|
||||
t.Fatalf("failer termination failure mismatch: have %v, want %v", err.Services[failer], failure)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue