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.3.2
Published
Nov 24, 2014
Platform
linux/amd64
Imports
3 packages
Last checked
1 hour ago

Tools for package owners.