Skip to content

Commit

Permalink
Update rpc_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Feb 18, 2024
1 parent 467f8a7 commit 9fb2b30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rpc/rpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
| |
| rpc/rpc_test.go |
| |
| LastModified: May 27, 2022 |
| LastModified: Feb 18, 2024 |
| Author: Ma Bingyao <[email protected]> |
| |
\*________________________________________________________*/
Expand Down Expand Up @@ -404,6 +404,8 @@ func TestAutoTypeConvert(t *testing.T) {
rpc.WithLongType(io.LongTypeBigInt),
rpc.WithRealType(io.RealTypeBigFloat),
rpc.WithMapType(io.MapTypeSIMap),
rpc.WithStructType(io.StructTypeStructPointer),
rpc.WithListType(io.ListTypeInterfaceSlice),
)
service.AddFunction(autoTypeConvert)
server, err := net.Listen("tcp", "127.0.0.1:8412")
Expand All @@ -423,6 +425,8 @@ func TestAutoTypeConvert(t *testing.T) {
rpc.WithLongType(io.LongTypeUint64),
rpc.WithRealType(io.RealTypeFloat64),
rpc.WithMapType(io.MapTypeIIMap),
rpc.WithStructType(io.StructTypeStructObject),
rpc.WithListType(io.ListTypeSlice),
)
client.UseService(&proxy)
msg, result := proxy.AutoTypeConvert(int64(12345))
Expand Down

0 comments on commit 9fb2b30

Please sign in to comment.