storj/private/testmonkit/run_test.go
Egon Elbre 4020e9e2ce private/testmonkit: move monkit test helper
Some tests do not use testplanet and hence testmonkit should be
reusable.

Change-Id: If6b7194a199d9ffba5eb1a91f38d3a792f883336
2021-10-12 14:00:01 +03:00

20 lines
390 B
Go

// Copyright (C) 2021 Storj Labs, Inc.
// See LICENSE for copying information
package testmonkit_test
import (
"context"
"testing"
"time"
"storj.io/storj/private/testmonkit"
)
func TestBasic(t *testing.T) {
// Set STORJ_TEST_MONKIT=svg,json for this to see the output.
testmonkit.Run(context.Background(), t, func(ctx context.Context) {
time.Sleep(100 * time.Millisecond)
})
}