added host address accessors that return all, and l0k18 timelog

https://gtimelog.org/ the timelogging app. each entry after first on a day is "start" and entries with ** or ** are marked as slacking or otherwise, work, referring to the period prior until the previous entry.
This commit is contained in:
l0k18
2023-07-13 10:23:28 +01:00
parent 61f010bb6e
commit 6da7419e9a
7 changed files with 47 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
package engine
import (
"context"
"github.com/indra-labs/indra"
"github.com/indra-labs/indra/pkg/codec/ad/addresses"
"github.com/indra-labs/indra/pkg/codec/ad/intro"
@@ -27,7 +28,8 @@ func TestEngine_PeerStore(t *testing.T) {
var e error
var engines []*Engine
var cleanup func()
engines, cleanup, e = CreateAndStartMockEngines(nTotal)
ctx, _ := context.WithCancel(context.Background())
engines, cleanup, e = CreateAndStartMockEngines(nTotal, 0, ctx)
adz := engines[0].Listener.Host.Addrs()
addrs := make([]*netip.AddrPort, len(adz))
for i := range adz {