Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
hughns committed Jan 20, 2025
1 parent 7da848d commit bf71126
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ func TestHandlePost(t *testing.T) {
// Mock response
w.WriteHeader(http.StatusOK)
w.Header().Set("Content-Type", "application/json")
w.Write([]byte(fmt.Sprintf(`{"sub": "@user:%s"}`, matrixServerName)))
_, err := w.Write([]byte(fmt.Sprintf(`{"sub": "@user:%s"}`, matrixServerName)))
if err != nil {
t.Fatalf("failed to write response: %v", err)
}
}))
defer testServer.Close()

Expand Down

0 comments on commit bf71126

Please sign in to comment.