chore: update output format in golangci-lint config and improve response handling in tests
This commit is contained in:
+2
-1
@@ -9,4 +9,5 @@ run:
|
|||||||
timeout: 5m
|
timeout: 5m
|
||||||
|
|
||||||
output:
|
output:
|
||||||
format: colored-line-number
|
formats:
|
||||||
|
- colored-line-number
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ func newMockDeviceCertificatesServer() *httptest.Server {
|
|||||||
</SOAP-ENV:Envelope>`
|
</SOAP-ENV:Envelope>`
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Write([]byte(response))
|
_, _ = w.Write([]byte(response))
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -144,7 +144,7 @@ func newMockDeviceWiFiServer() *httptest.Server {
|
|||||||
</SOAP-ENV:Envelope>`
|
</SOAP-ENV:Envelope>`
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Write([]byte(response))
|
_, _ = w.Write([]byte(response))
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user