Skip to content

Commit d3c8a03

Browse files
author
Adriano Santos
committed
refactor: rename single to unary in tests
1 parent a40f36c commit d3c8a03

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/grpc/stream_test.exs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ defmodule GRPC.StreamTest do
1111
def get_headers(_), do: %{"content-type" => "application/grpc"}
1212
end
1313

14-
test "single/2 creates a flow from a unary input" do
14+
test "unary/2 creates a flow from a unary input" do
1515
input = %TestInput{message: 1}
1616

1717
result =
18-
GRPC.Stream.single(input)
18+
GRPC.Stream.unary(input)
1919
|> GRPC.Stream.map(& &1)
2020
|> GRPC.Stream.run()
2121

2222
assert result == input
2323
end
2424

25-
test "single/2 creates a flow with metadata" do
25+
test "unary/2 creates a flow with metadata" do
2626
input = %TestInput{message: 1}
2727
materializer = %GRPC.Server.Stream{adapter: FakeAdapter}
2828

2929
flow =
30-
GRPC.Stream.single(input, materializer: materializer, propagate_context: true)
30+
GRPC.Stream.unary(input, materializer: materializer, propagate_context: true)
3131
|> GRPC.Stream.map_with_context(fn meta, item ->
3232
assert not is_nil(meta)
3333
assert is_map(meta)

0 commit comments

Comments
 (0)