Skip to content

Commit

Permalink
ci: fix cluster file
Browse files Browse the repository at this point in the history
  • Loading branch information
id committed Nov 17, 2023
1 parent 5a55b14 commit a766efc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,12 @@ jobs:
foundationdb:
image: foundationdb/foundationdb:7.1.43
steps:
- name: Check out repository code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Compile erlfdb
run: rebar3 compile
- name: Create FDB cluster file
env:
# This needs to match the name of the service above so the script can do
Expand All @@ -116,12 +122,6 @@ jobs:
run: bash /usr/local/bin/create_cluster_file.bash
- name: Initialize FDB database
run: fdbcli --exec "configure new single ssd"
- name: Check out repository code
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Compile erlfdb
run: rebar3 compile
- name: Execute unit tests
run: rebar3 eunit
- name: Execute binding test
Expand Down
2 changes: 1 addition & 1 deletion src/erlfdb_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ init_test_cluster_int(Options) ->
ClusterName = ?MODULE:get(Options, cluster_name, <<"erlfdbtest">>),
ClusterId = ?MODULE:get(Options, cluster_id, <<"erlfdbtest">>),

DefaultClusterFile = filename:join(Dir, <<"erlfdb.cluster">>),
DefaultClusterFile = <<"/etc/foundationdb/fdb.cluster">>,
ClusterFile = ?MODULE:get(Options, cluster_file, DefaultClusterFile),

write_cluster_file(ClusterFile, ClusterName, ClusterId, IpAddr, Port),
Expand Down

0 comments on commit a766efc

Please sign in to comment.