aboutsummaryrefslogtreecommitdiff
path: root/setup/base
diff options
context:
space:
mode:
authorBoris Rybalkin <ribalkin@gmail.com>2023-03-16 07:51:21 +0000
committerGitHub <noreply@github.com>2023-03-16 08:51:21 +0100
commitd88f71ab71a60348518f7fa6735ac9f0bfb472c3 (patch)
treea64c75fd83079c518a38f60b01b54720066c101a /setup/base
parent2c58bab6a8727f56920b6c8b4d035bfcf9929744 (diff)
simplify unix socket permission format (#3014)
### Pull Request Checklist <!-- Please read https://matrix-org.github.io/dendrite/development/contributing before submitting your pull request --> * [x] I have added Go unit tests or [Complement integration tests](https://github.com/matrix-org/complement) for this PR _or_ I have justified why this PR doesn't need tests * [x] Pull request includes a [sign off below using a legally identifiable name](https://matrix-org.github.io/dendrite/development/contributing#sign-off) _or_ I have already signed off privately Signed-off-by: `Boris Rybalkin <ribalkin@gmail.com>`
Diffstat (limited to 'setup/base')
-rw-r--r--setup/base/base_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/setup/base/base_test.go b/setup/base/base_test.go
index 658dc5b0..aa406db2 100644
--- a/setup/base/base_test.go
+++ b/setup/base/base_test.go
@@ -76,7 +76,7 @@ func TestLandingPage_UnixSocket(t *testing.T) {
tempDir := t.TempDir()
socket := path.Join(tempDir, "socket")
// start base with the listener and wait for it to be started
- address := config.UnixSocketAddress(socket, 0755)
+ address, err := config.UnixSocketAddress(socket, "755")
assert.NoError(t, err)
go b.SetupAndServeHTTP(address, nil, nil)
time.Sleep(time.Millisecond * 100)