node: new concrete type for seed node implementation (#7521)

Defines a different concrete type that satisfies the service interface for a seed node.
update the seed node unit test to assert the new type.

Fixes #6775
This commit is contained in:
Kene
2022-01-11 14:07:49 +01:00
committed by GitHub
parent 6291d22f46
commit 2f858f1448
3 changed files with 105 additions and 30 deletions
+1 -1
View File
@@ -556,7 +556,7 @@ func TestNodeNewSeedNode(t *testing.T) {
t.Cleanup(ns.Wait)
require.NoError(t, err)
n, ok := ns.(*nodeImpl)
n, ok := ns.(*seedNodeImpl)
require.True(t, ok)
err = n.Start(ctx)