Skip to content

Commit

Permalink
pr feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Jordan Rash <[email protected]>
  • Loading branch information
jordan-rash committed Jan 3, 2025
1 parent 0a2bc00 commit 7cbfcad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
12 changes: 3 additions & 9 deletions node/internal/actors/mock_node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,13 @@ package actors
import (
"context"
"encoding/json"
"time"

"github.com/nats-io/nkeys"
"github.com/synadia-io/nex/models"
actorproto "github.com/synadia-io/nex/node/internal/actors/pb"
"google.golang.org/protobuf/types/known/timestamppb"
)

const (
NodeXkey string = "SXAAJQZR4DLEWWUAIDYHIV3JRXNHYMKV5O3POAWXQLATMPAF2OWLJTZ4BM"
NodeXkeyPub string = "XC6LBRSGPEQTOFBYEII2DX2RVWXEK27BARNJMX2V3WIKR6XIWFLRYYZY"
)

type mockNode struct {
options *models.NodeOptions
}
Expand All @@ -32,8 +26,8 @@ func (n *mockNode) Auction(auctionId string, agentType []string, tags map[string
return &actorproto.AuctionResponse{
BidderId: "abc123",
Version: "0.0.0",
TargetXkey: NodeXkeyPub,
StartedAt: timestamppb.New(time.Now()),
TargetXkey: "XNODEKEY",
StartedAt: timestamppb.Now(),
Tags: n.options.Tags,
Status: make(map[string]int32),
}, nil
Expand All @@ -46,7 +40,7 @@ func (n mockNode) Ping() (*actorproto.PingNodeResponse, error) {
TargetXkey: "XNODEXKEY",
StartedAt: timestamppb.Now(),
Tags: n.options.Tags,
RunningAgents: map[string]int32{},
RunningAgents: make(map[string]int32),
}, nil
}

Expand Down
3 changes: 0 additions & 3 deletions node/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,3 @@ resource directory does not exist` {
t.Fatal("failed to return expected errors")
}
}

func TestCallbackFunctions(t *testing.T) {
}

0 comments on commit 7cbfcad

Please sign in to comment.