|
|
@ -1,7 +1,6 @@ |
|
|
|
package rabbitmqrpc |
|
|
|
|
|
|
|
import ( |
|
|
|
"encoding/json" |
|
|
|
"testing" |
|
|
|
) |
|
|
|
|
|
|
@ -18,9 +17,8 @@ func Test_Send(t *testing.T) { |
|
|
|
"order_sn": "cccc", |
|
|
|
}, |
|
|
|
} |
|
|
|
data, _ := json.Marshal(msg) |
|
|
|
|
|
|
|
ret, err := Send(exchange, key, string(data)) |
|
|
|
ret, err := Send(exchange, key, msg) |
|
|
|
|
|
|
|
t.Log(ret) |
|
|
|
t.Log(err) |
|
|
|