Skip to content

Commit

Permalink
fix: tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asabya committed Apr 3, 2023
1 parent 39efc06 commit 82e3301
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/account/account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import (
"bytes"
"io"
"testing"
"time"

"github.com/fairdatasociety/fairOS-dfs/pkg/logging"
"github.com/fairdatasociety/fairOS-dfs/pkg/utils"
Expand Down Expand Up @@ -65,11 +66,11 @@ func TestAuthorise(t *testing.T) {
}

func TestCreateRandomKeyPair(t *testing.T) {
pk1, err := CreateRandomKeyPair(1)
pk1, err := CreateRandomKeyPair(time.Now().Unix())
if err != nil {
t.Fatal(err)
}
pk2, err := CreateRandomKeyPair(2)
pk2, err := CreateRandomKeyPair(time.Now().Unix() + 100)
if err != nil {
t.Fatal(err)
}
Expand Down

0 comments on commit 82e3301

Please sign in to comment.