fix: session name generator

This commit is contained in:
Steven
2023-07-02 23:20:52 +08:00
parent ff8b92aa66
commit e94c48b576
4 changed files with 5 additions and 8 deletions

View File

@ -5,14 +5,14 @@ import (
"testing"
"github.com/boojack/shortify/store"
"github.com/gorilla/securecookie"
"github.com/google/uuid"
"github.com/stretchr/testify/require"
)
func TestWorkspaceSettingStore(t *testing.T) {
ctx := context.Background()
ts := NewTestingStore(ctx, t)
tempSecret := securecookie.GenerateRandomKey(16)
tempSecret := uuid.New().String()
workspaceSetting, err := ts.UpsertWorkspaceSetting(ctx, &store.WorkspaceSetting{
Key: store.WorkspaceSecretSessionName,
Value: string(tempSecret),