storj/internal/testcontext/context_test.go
2018-10-29 16:16:36 +02:00

22 lines
318 B
Go

package testcontext_test
import (
"testing"
"time"
"storj.io/storj/internal/testcontext"
)
func TestBasic(t *testing.T) {
ctx := testcontext.New(t)
defer ctx.Cleanup()
ctx.Go(func() error {
time.Sleep(time.Millisecond)
return nil
})
t.Log(ctx.Dir("a", "b", "c"))
t.Log(ctx.File("a", "w", "c.txt"))
}