Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Commit

Permalink
fix static issue
Browse files Browse the repository at this point in the history
  • Loading branch information
willscott committed Jul 31, 2022
1 parent 56594d1 commit 78e8bf5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/provide_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ func TestProvideRoundtrip(t *testing.T) {
},
AdvisoryTTL: time.Hour,
}
rc, err := c.Provide(context.Background(), &req)
if err == nil {
if _, err = c.Provide(context.Background(), &req); err == nil {
t.Fatal("should get sync error on unsigned provide request.")
}

if err = req.Sign(priv); err != nil {
t.Fatal(err)
}
if rc, err = c.Provide(context.Background(), &req); err != nil {
rc, err := c.Provide(context.Background(), &req)
if err != nil {
t.Fatal(err)
}

Expand Down

0 comments on commit 78e8bf5

Please sign in to comment.