13 lines
192 B
Go
13 lines
192 B
Go
|
package http
|
||
|
|
||
|
import (
|
||
|
"testing"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
func TestDurationMs(t *testing.T) {
|
||
|
if DurationMs(time.Second) != 1000 {
|
||
|
t.Error("duration ms should return the duration in milliseconds")
|
||
|
}
|
||
|
}
|