mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-22 20:39:41 +00:00
29 lines
426 B
Go
29 lines
426 B
Go
// Copyright (c) 2017 Intel Corporation
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package virtcontainers
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestCCProxyStart(t *testing.T) {
|
|
proxy := &ccProxy{}
|
|
|
|
testProxyStart(t, nil, proxy)
|
|
}
|
|
|
|
func TestCCProxy(t *testing.T) {
|
|
proxy := &ccProxy{}
|
|
assert := assert.New(t)
|
|
|
|
err := proxy.stop(0)
|
|
assert.Nil(err)
|
|
|
|
assert.False(proxy.consoleWatched())
|
|
}
|