Skip to content

Commit

Permalink
Merge pull request #90 from xmidt-org/fix-tests
Browse files Browse the repository at this point in the history
Fix the tests since 'qos' field got added but apparently lost in a me…
  • Loading branch information
schmidtw authored Jun 24, 2022
2 parents 373d6d6 + bc6e6dc commit 3719b16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wrpendpoint/requestResponse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func testNoteEncodeUseMessage(t *testing.T) {
)

assert.NoError(note.Encode(&actual, wrp.JSON))
assert.JSONEq(`{"msg_type": 3, "source": "test", "dest": "test"}`, actual.String())
assert.JSONEq(`{"msg_type": 3, "source": "test", "dest": "test", "qos": 0}`, actual.String())
}

func testNoteEncodeBytesUseContents(t *testing.T) {
Expand Down Expand Up @@ -129,7 +129,7 @@ func testNoteEncodeBytesUseMessage(t *testing.T) {

actual, err := note.EncodeBytes(wrp.JSON)
assert.NoError(err)
assert.JSONEq(`{"msg_type": 3, "source": "test", "dest": "test"}`, string(actual))
assert.JSONEq(`{"msg_type": 3, "source": "test", "dest": "test", "qos": 0}`, string(actual))
}

func TestNote(t *testing.T) {
Expand Down

0 comments on commit 3719b16

Please sign in to comment.