20 lines
307 B
Go
20 lines
307 B
Go
|
|
package test_test
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
"queryorchestration/internal/test"
|
||
|
|
"testing"
|
||
|
|
|
||
|
|
"github.com/stretchr/testify/assert"
|
||
|
|
)
|
||
|
|
|
||
|
|
func TestCreateNetwork(t *testing.T) {
|
||
|
|
ctx := context.Background()
|
||
|
|
|
||
|
|
ncfg, cleanup := test.CreateNetwork(t, ctx)
|
||
|
|
assert.NotNil(t, ncfg)
|
||
|
|
assert.NotNil(t, cleanup)
|
||
|
|
|
||
|
|
cleanup()
|
||
|
|
}
|