mirror of
https://github.com/coder/coder.git
synced 2025-07-06 15:41:45 +00:00
* feat: Add v1 schema types This adds compatibility for sharing data with Coder v1. Since the tables are the same, all CRUD operations should function as expected. * Add license table * feat: Add Coder Daemon to serve the API coderd is a public package which will be consumed by v1 to support running both at the same time. The frontend will need to be compiled and statically served as part of this eventually. * Fix initial migration * Move to /api/v2 * Increase peer disconnectedTimeout to reduce flakes on slow machines * Reduce timeout again * Fix version for pion/ice
17 lines
321 B
Go
17 lines
321 B
Go
package cmd_test
|
|
|
|
import (
|
|
"context"
|
|
"testing"
|
|
|
|
"github.com/coder/coder/coderd/cmd"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestRoot(t *testing.T) {
|
|
ctx, cancelFunc := context.WithCancel(context.Background())
|
|
go cancelFunc()
|
|
err := cmd.Root().ExecuteContext(ctx)
|
|
require.ErrorIs(t, err, context.Canceled)
|
|
}
|