package testutils

import "github.com/docker/docker/pkg/testutils"

Index

Functions

func RandomString

func RandomString(length int) string

RandomString returns random string of specified length

func Timeout

func Timeout(t *testing.T, f func())

Timeout calls f and waits for 100ms for it to complete. If it doesn't, it causes the tests to fail. t must be a valid testing context.

Source Files

utils.go

Version
v1.6.0
Published
Apr 16, 2015
Platform
js/wasm
Imports
3 packages
Last checked
1 minute ago

Tools for package owners.