From e27d53678be60e49467e1b04b8e2a84fec206ade Mon Sep 17 00:00:00 2001 From: Isaac Yonemoto Date: Fri, 13 Oct 2023 09:50:36 -0500 Subject: [PATCH] fixes failing CI and adds 26.0 warning --- README.md | 5 +++++ test/errors/ref_not_found_test.exs | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c7507b5..8cd0265 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,11 @@ ![example workflow](https://github.com/E-xyza/exonerate/actions/workflows/elixir.yml/badge.svg) +## Erlang 26.0 warning + +There is a bug in the Erlang compiler that causes Exonerate to fail on OTP version 26.0. Please use +26.1 or an earlier version or OTP. + ## Documentation Documentation is available at: https://hexdocs.pm/exonerate diff --git a/test/errors/ref_not_found_test.exs b/test/errors/ref_not_found_test.exs index fcae623..ddb4316 100644 --- a/test/errors/ref_not_found_test.exs +++ b/test/errors/ref_not_found_test.exs @@ -1,9 +1,15 @@ defmodule ExonerateTest.RefNotFoundTest do use ExUnit.Case, async: true + @error_string if Version.compare(Version.parse!(System.version()), %Version{major: 1, minor: 15, patch: 0}) == :lt do + " reference points to: #/definitions/foo, this location not found in the schema" + else + "reference points to: #/definitions/foo, this location not found in the schema" + end + test "if there's a missing ref, we get a CompileError" do assert_raise CompileError, - "reference points to: #/definitions/foo, this location not found in the schema", + @error_string, fn -> __DIR__ |> Path.join("ref_not_found_root.exs")