signaller/internal/backends/memory/tokens_test.go

15 lines
263 B
Go
Raw Permalink Normal View History

2019-07-22 14:46:21 +00:00
package memory
import (
"testing"
2019-08-05 14:39:28 +00:00
"github.com/signaller-matrix/signaller/internal"
2019-07-22 14:46:21 +00:00
"github.com/stretchr/testify/assert"
)
func TestTokenGenerator(t *testing.T) {
2019-08-05 14:39:28 +00:00
token := internal.RandomString(defaultTokenSize)
2019-07-22 14:46:21 +00:00
assert.Len(t, token, defaultTokenSize*2)
}