Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelreiswildlife committed Apr 25, 2024
1 parent 90d2b2b commit 71a9e9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/sendmqtt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ var _ = Describe("Send to MQTT Handler", func() {
testJSON := map[string]interface{}{
"message": "hello",
}
response := `{"topic": "test", "retained": false, "payload": {"message":"hello"}}`
response := `{"topic": "test", "retained": false, "payload": {"message":"hello", "should_moderate": false }}`
status, body := PostJSON(a, "/sendmqtt/test", testJSON)

Expect(status).To(Equal(http.StatusOK))
Expand All @@ -42,7 +42,7 @@ var _ = Describe("Send to MQTT Handler", func() {
testJSON := map[string]interface{}{
"message": "hello",
}
response := `{"topic": "test/topic", "retained": false, "payload": {"message":"hello"}}`
response := `{"topic": "test/topic", "retained": false, "payload": {"message":"hello", "should_moderate": false }}`
url := "/sendmqtt/test/topic"
status, body := PostJSON(a, url, testJSON)

Expand Down Expand Up @@ -97,7 +97,7 @@ var _ = Describe("Send to MQTT Handler", func() {
testJSON := map[string]interface{}{
"message": "hello",
}
response := `{"topic": "test/topic", "retained": true, "payload": {"message":"hello"}}`
response := `{"topic": "test/topic", "retained": true, "payload": {"message":"hello", "should_moderate": false }}`
url := "/sendmqtt/test/topic?retained=true"
status, body := PostJSON(a, url, testJSON)

Expand Down

0 comments on commit 71a9e9d

Please sign in to comment.