mirror of
https://github.com/photoprism/photoprism.git
synced 2026-01-23 02:24:24 +00:00
15 lines
265 B
Go
15 lines
265 B
Go
package capture
|
|
|
|
import (
|
|
"testing"
|
|
"time"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestTime(t *testing.T) {
|
|
start := time.Now()
|
|
time.Sleep(1 * time.Millisecond)
|
|
result := Time(start, "Successful test")
|
|
assert.Contains(t, result, "Successful test [")
|
|
}
|