mirror of
https://github.com/elyby/chrly.git
synced 2024-11-26 16:51:59 +05:30
6f148a8791
Implemented /signing-key endpoint to get public key in der format, used to sign the textures. Improved logging of errors from http package. Changed behavior of the /cloaks endpoint
17 lines
291 B
Go
17 lines
291 B
Go
package utils
|
|
|
|
import (
|
|
"time"
|
|
|
|
"testing"
|
|
|
|
assert "github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestUnixMillisecond(t *testing.T) {
|
|
loc, _ := time.LoadLocation("CET")
|
|
d := time.Date(2021, 02, 26, 00, 43, 57, 987654321, loc)
|
|
|
|
assert.Equal(t, int64(1614296637987), UnixMillisecond(d))
|
|
}
|