Skip to content

Commit db938b4

Browse files
committed
Fix test warnings on Elixir 1.17+
1 parent c8eed16 commit db938b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/protobuf/dsl_test.exs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ defmodule Protobuf.DSLTest do
195195
assert %Foo{
196196
a: 0,
197197
c: "",
198-
d: 0.0,
198+
d: +0.0,
199199
e: nil,
200200
f: 0,
201201
g: [],
@@ -210,7 +210,7 @@ defmodule Protobuf.DSLTest do
210210
a: 1,
211211
b: 42,
212212
c: "abc",
213-
d: 0.0,
213+
d: +0.0,
214214
e: %Foo.Bar{a: 2, b: "asd"},
215215
f: 0,
216216
g: [],

test/protobuf/protoc/generator/enum_test.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ defmodule Protobuf.Protoc.Generator.EnumTest do
8080
field :HAS_UNDERSCORES_, 4
8181
"""
8282

83-
assert %Google.Protobuf.EnumDescriptorProto{} = desc = compiled_mod.descriptor
83+
assert %Google.Protobuf.EnumDescriptorProto{} = desc = compiled_mod.descriptor()
8484
assert desc.name == module
8585

8686
assert msg =~ """

0 commit comments

Comments
 (0)