(t *testing.T)
| 13 | ) |
| 14 | |
| 15 | func TestValueQueue_RPC(t *testing.T) { |
| 16 | if !testutils.IsSingleTesting() { |
| 17 | return |
| 18 | } |
| 19 | |
| 20 | rpcClient, err := rpc.SharedRPC() |
| 21 | if err != nil { |
| 22 | t.Fatal(err) |
| 23 | } |
| 24 | _, err = rpcClient.NodeValueRPC.CreateNodeValue(rpcClient.Context(), &pb.CreateNodeValueRequest{}) |
| 25 | if err != nil { |
| 26 | statusErr, ok := status.FromError(err) |
| 27 | if ok { |
| 28 | logs.Println(statusErr.Code()) |
| 29 | } |
| 30 | t.Fatal(err) |
| 31 | } |
| 32 | t.Log("ok") |
| 33 | } |
nothing calls this directly
no test coverage detected