code review

This commit is contained in:
Krzysztof Dryś 2024-01-17 11:29:03 +01:00
parent 0d62c198b9
commit 7b629babcf
2 changed files with 2 additions and 2 deletions

View File

@ -142,7 +142,7 @@ func TestSignAndVerify(t *testing.T) {
token, err := serviceWithAnotherKey.SignAndEncode(Message{ token, err := serviceWithAnotherKey.SignAndEncode(Message{
ConnectionID: uuid.New().String(), ConnectionID: uuid.New().String(),
ExpiresAt: now.Add(-time.Hour), ExpiresAt: now.Add(-time.Hour),
ConnectionType: ConnectionTypeBrowserExtensionWait, ConnectionType: ConnectionTypeBrowserExtensionProxy,
}) })
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)

View File

@ -125,7 +125,7 @@ func TestSignAndVerify(t *testing.T) {
token, err := serviceWithAnotherKey.SignAndEncode(sign.Message{ token, err := serviceWithAnotherKey.SignAndEncode(sign.Message{
ConnectionID: uuid.New().String(), ConnectionID: uuid.New().String(),
ExpiresAt: now.Add(-time.Hour), ExpiresAt: now.Add(-time.Hour),
ConnectionType: sign.ConnectionTypeBrowserExtensionWait, ConnectionType: sign.ConnectionTypeBrowserExtensionProxy,
}) })
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)