Skip to content

Commit

Permalink
test(layout): fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMarble committed Jan 25, 2022
1 parent cf00b54 commit fee7db2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/keyboard/keyboard_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ func Test(t *testing.T) {
// Start a local HTTP server
server := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, req *http.Request) {
// Send response to be tested
rw.Write([]byte(`{
_, err := rw.Write([]byte(`{
"keyboards": {
"cradio": {
"keyboard_name": "Cradio",
Expand Down Expand Up @@ -58,6 +58,9 @@ func Test(t *testing.T) {
}
}
`))
if err != nil {
t.Fatal(err)
}
}))
// Close the server when test finishes
defer server.Close()
Expand Down

0 comments on commit fee7db2

Please sign in to comment.