Fixed some lint and code convention violations
This commit is contained in:
1 parent
af7880ceac
commit
378ac59f41
6 files changed
+33
-11
No files matched your search
@@ -76,7 +76,9 @@ func TestDialPingFlag(t *testing.T) {
|
||||
cmdtest.Setup(t, "")
|
||||
_, url := wsServer(t)
|
||||
|
||||
out := cmdtest.MustRun(t, newRoot, "dial", "--http-upgrade", "--url", url, "--ping")
|
||||
out := cmdtest.MustRun(
|
||||
t, newRoot, "dial", "--http-upgrade", "--url", url, "--ping",
|
||||
)
|
||||
cmdtest.Contains(
|
||||
t,
|
||||
out,
|
||||
@@ -302,7 +304,8 @@ func TestDialStdinError(t *testing.T) {
|
||||
|
||||
select {
|
||||
case err := <-done:
|
||||
if err == nil || !strings.Contains(err.Error(), "reading input: disk on fire") {
|
||||
if err == nil ||
|
||||
!strings.Contains(err.Error(), "reading input: disk on fire") {
|
||||
t.Fatalf("dial = %v; want the input error", err)
|
||||
}
|
||||
case <-time.After(time.Second):
|
||||
|
||||
Reference in new issue
Block a user