commit ff984cad70ab3182121107216a7e57a0c6d18b20
parent b0d27e34a236232739557b64b35ca7954bd29ef5
Author: Andreas Gruhler <andreas.gruhler@adfinis.com>
Date: Mon, 18 Sep 2023 22:16:17 +0200
chore: make fmt
Diffstat:
1 file changed, 9 insertions(+), 10 deletions(-)
diff --git a/server_test.go b/server_test.go
@@ -1,24 +1,24 @@
package main
import (
- "net/http"
- "net/http/httptest"
"github.com/in0rdr/go-webdav"
"github.com/in0rdr/go-webdav/caldav"
+ "hivedav/config"
+ "net/http"
+ "net/http/httptest"
"strings"
"testing"
- "hivedav/config"
)
var server *Server
func TestServer(t *testing.T) {
- config := config.Config {
- ListenAddress: "[::]",
- ListenPort: 3737,
- CaldavUri: "/",
- Calendar: 0,
- CaldavUser: "gandalf",
+ config := config.Config{
+ ListenAddress: "[::]",
+ ListenPort: 3737,
+ CaldavUri: "/",
+ Calendar: 0,
+ CaldavUser: "gandalf",
CaldavPassword: "ring",
}
server, err := server.NewServer(&config)
@@ -69,4 +69,3 @@ func TestServer(t *testing.T) {
t.Errorf("request to / does not contain word 'hive'")
}
}
-