Skip to content

Commit

Permalink
Fixes tests (db)
Browse files Browse the repository at this point in the history
  • Loading branch information
hopleus committed Oct 5, 2024
1 parent e5dfe24 commit 56657a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hscontrol/db/node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ func (s *Suite) TestGetACLFilteredPeers(c *check.C) {
}

stor := make([]base, 0)
authorize := time.Date(2009, time.November, 10, 23, 9, 0, 0, time.UTC)

for _, name := range []string{"test", "admin"} {
user, err := db.CreateUser(name)
Expand All @@ -211,6 +212,7 @@ func (s *Suite) TestGetACLFilteredPeers(c *check.C) {
UserID: stor[index%2].user.ID,
RegisterMethod: util.RegisterMethodAuthKey,
AuthKeyID: ptr.To(stor[index%2].key.ID),
Authorize: &authorize,
}
trx := db.DB.Save(&node)
c.Assert(trx.Error, check.IsNil)
Expand Down

0 comments on commit 56657a2

Please sign in to comment.