mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
chore: lint sink_test.go (#10765)
This commit is contained in:
@ -1,17 +1,17 @@
|
|||||||
package cliutil_test
|
package cliutil_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
|
"golang.org/x/xerrors"
|
||||||
|
|
||||||
"github.com/coder/coder/v2/cli/cliutil"
|
"github.com/coder/coder/v2/cli/cliutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestDiscardAfterClose(t *testing.T) {
|
func TestDiscardAfterClose(t *testing.T) {
|
||||||
t.Parallel()
|
t.Parallel()
|
||||||
exErr := errors.New("test")
|
exErr := xerrors.New("test")
|
||||||
fwc := &fakeWriteCloser{err: exErr}
|
fwc := &fakeWriteCloser{err: exErr}
|
||||||
uut := cliutil.DiscardAfterClose(fwc)
|
uut := cliutil.DiscardAfterClose(fwc)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user