File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -11,23 +11,23 @@ defmodule GRPC.StreamTest do
11
11
def get_headers ( _ ) , do: % { "content-type" => "application/grpc" }
12
12
end
13
13
14
- test "single /2 creates a flow from a unary input" do
14
+ test "unary /2 creates a flow from a unary input" do
15
15
input = % TestInput { message: 1 }
16
16
17
17
result =
18
- GRPC.Stream . single ( input )
18
+ GRPC.Stream . unary ( input )
19
19
|> GRPC.Stream . map ( & & 1 )
20
20
|> GRPC.Stream . run ( )
21
21
22
22
assert result == input
23
23
end
24
24
25
- test "single /2 creates a flow with metadata" do
25
+ test "unary /2 creates a flow with metadata" do
26
26
input = % TestInput { message: 1 }
27
27
materializer = % GRPC.Server.Stream { adapter: FakeAdapter }
28
28
29
29
flow =
30
- GRPC.Stream . single ( input , materializer: materializer , propagate_context: true )
30
+ GRPC.Stream . unary ( input , materializer: materializer , propagate_context: true )
31
31
|> GRPC.Stream . map_with_context ( fn meta , item ->
32
32
assert not is_nil ( meta )
33
33
assert is_map ( meta )
You can’t perform that action at this time.
0 commit comments