@@ -76,6 +76,7 @@ func TestPrioritySetGet(t *testing.T) {
76
76
// Go again with a different priority.
77
77
newMsgPriority := 2
78
78
producer = producer .SetPriority (newMsgPriority )
79
+ producer = producer .SetDeliveryMode (jms20subset .DeliveryMode_PERSISTENT )
79
80
assert .Equal (t , newMsgPriority , producer .GetPriority ())
80
81
81
82
errSend = producer .Send (queue , txtMsg )
@@ -95,11 +96,13 @@ func TestPrioritySetGet(t *testing.T) {
95
96
// Check the Priority
96
97
gotPropValue = rcvMsg .GetJMSPriority ()
97
98
assert .Equal (t , newMsgPriority , gotPropValue )
99
+ assert .Equal (t , jms20subset .DeliveryMode_PERSISTENT , rcvMsg .GetJMSDeliveryMode ())
98
100
99
101
// -------
100
102
// Go again with a different priority.
101
103
newMsgPriority2 := 7
102
104
producer = producer .SetPriority (newMsgPriority2 )
105
+ producer = producer .SetDeliveryMode (jms20subset .DeliveryMode_NON_PERSISTENT )
103
106
assert .Equal (t , newMsgPriority2 , producer .GetPriority ())
104
107
105
108
errSend = producer .Send (queue , txtMsg )
@@ -119,6 +122,7 @@ func TestPrioritySetGet(t *testing.T) {
119
122
// Check the Priority
120
123
gotPropValue = rcvMsg .GetJMSPriority ()
121
124
assert .Equal (t , newMsgPriority2 , gotPropValue )
125
+ assert .Equal (t , jms20subset .DeliveryMode_NON_PERSISTENT , rcvMsg .GetJMSDeliveryMode ())
122
126
123
127
}
124
128
0 commit comments