File: getter_test.go

package info (click to toggle)
golang-github-centrifugal-centrifuge 0.15.0%2Bgit20210306.f435ba2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,612 kB
  • sloc: javascript: 102; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 227 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package nowtime

import (
	"testing"
	"time"

	"github.com/stretchr/testify/require"
)

func TestGet(t *testing.T) {
	nowTime := Get()
	require.NotNil(t, nowTime)
	require.GreaterOrEqual(t, time.Now().Unix(), nowTime.Unix())
}