Skip to content

Commit

Permalink
Tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
noname0443 committed Oct 11, 2023
1 parent c6874ee commit 6064d73
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 0 additions & 2 deletions internal/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,9 @@ func TouchFile(fname string) error {
_, err := os.Stat(fname)
if os.IsNotExist(err) {
err := os.WriteFile(fname, []byte(""), 0644)
//file, err := os.Create(fname)
if err != nil {
return err
}
//defer file.Close()
}
return nil
}
Expand Down
3 changes: 1 addition & 2 deletions tests/images/base/setup.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

set -xe

cat <<EOF > /etc/apt/apt.conf.d/01buildconfig
Expand Down Expand Up @@ -74,5 +73,5 @@ cp /var/lib/dist/base/supervisor.conf /etc/supervisor/supervisord.conf
cp /var/lib/dist/base/supervisor_ssh.conf /etc/supervisor/conf.d

# zookeeper
wget -nc -O - --quiet https://downloads.apache.org/zookeeper/zookeeper-${ZK_VERSION}/apache-zookeeper-${ZK_VERSION}-bin.tar.gz | tar -xz -C /opt && \
mv /opt/apache-zookeeper* /opt/zookeeper
wget -nc -O - --quiet https://archive.apache.org/zookeeper/zookeeper-${ZK_VERSION}/apache-zookeeper-${ZK_VERSION}-bin.tar.gz | tar -xz -C /opt &&

0 comments on commit 6064d73

Please sign in to comment.