From 091a61d5547bd5df6e98482b713401368232806e Mon Sep 17 00:00:00 2001 From: firest Date: Sat, 18 Nov 2023 12:14:28 +0800 Subject: [PATCH] test: fix API binding test errors --- .github/workflows/ci.yml | 6 ++++++ src/erlfdb_util.erl | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f93f904..4fc8fce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -106,6 +106,12 @@ jobs: services: foundationdb: image: foundationdb/foundationdb:7.1.43 + env: + REBAR_PROFILE: devcontainer + # Set to 1 for verbose rebar3 logging + DEBUG: 0 + # Set to 1 for even more verbose rebar3 logging + DIAGNOSTIC: 0 steps: - name: Check out repository code uses: actions/checkout@v4 diff --git a/src/erlfdb_util.erl b/src/erlfdb_util.erl index f60e857..2e7f4ba 100644 --- a/src/erlfdb_util.erl +++ b/src/erlfdb_util.erl @@ -107,7 +107,7 @@ init_test_cluster_int(Options) -> ClusterName = ?MODULE:get(Options, cluster_name, <<"erlfdbtest">>), ClusterId = ?MODULE:get(Options, cluster_id, <<"erlfdbtest">>), - DefaultClusterFile = <<"/etc/foundationdb/fdb.cluster">>, + DefaultClusterFile = filename:join(Dir, <<"erlfdb.cluster">>), ClusterFile = ?MODULE:get(Options, cluster_file, DefaultClusterFile), write_cluster_file(ClusterFile, ClusterName, ClusterId, IpAddr, Port),