Skip to content

Commit

Permalink
Scheduler: fix panic in nodedb benchmark (#4120)
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Smith <[email protected]>
  • Loading branch information
robertdavidsmith authored Jan 3, 2025
1 parent 1ddd71b commit 3a3fc36
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/scheduler/nodedb/nodedb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,8 @@ func benchmarkUpsert(nodes []*internaltypes.Node, b *testing.B) {
for i, node := range nodes {
err = nodeDb.CreateAndInsertWithJobDbJobsWithTxn(txn, nil, node)
require.NoError(b, err)
entry, err := nodeDb.GetNode(node.GetId())
entry, err := nodeDb.GetNodeWithTxn(txn, node.GetId())
require.NotNil(b, entry)
require.NoError(b, err)
entries[i] = entry
}
Expand Down

0 comments on commit 3a3fc36

Please sign in to comment.