Skip to content

Commit

Permalink
adjust newMember var to use known pattern
Browse files Browse the repository at this point in the history
Our automated build step currently breaks on this test.  Looking at the
other tests in this file that also use newMember, it looks like they're
using a slightly different call, that does not specify ID and Algo (as
these are what's causing the error).
  • Loading branch information
cooldracula committed Jan 26, 2023
1 parent 957a60a commit ce2c4cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion roomdb/sqlite/invites_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ func TestInvites_BypassInvitestToken(t *testing.T) {
tr := repo.New(testRepo)

// fake feed for testing, looks ok at least
newMember := refs.FeedRef{ID: bytes.Repeat([]byte("acab"), 8), Algo: refs.RefAlgoFeedSSB1}
newMember, err := refs.NewFeedRefFromBytes(bytes.Repeat([]byte("acab"), 8), refs.RefAlgoFeedSSB1)
if err != nil {
t.Error(err)
}

token := "magic token"

Expand Down

0 comments on commit ce2c4cb

Please sign in to comment.