diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f93f904..d608777 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,7 +99,7 @@ jobs: strategy: matrix: #test-name: [api, directory, directory_hca, tuple] - test-name: [api] + test-name: [api, directory] api-version: [710] container: image: ghcr.io/emqx/couchdb-erlfdb:erlang-25-fdb-7.1.43 diff --git a/devcontainer.config b/devcontainer.config index b621b28..27f683f 100644 --- a/devcontainer.config +++ b/devcontainer.config @@ -1,5 +1,5 @@ [ {erlfdb, [ - {test_cluster_file, system_default} + {test_cluster_file, "/etc/foundationdb/fdb.cluster"} ]} ]. 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),