From 09703c6b9c343feca8ee5db263d25f174171339d Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 22 May 2018 16:54:35 +0300 Subject: Fix tests --- matrix/matrix_test.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'matrix/matrix_test.go') diff --git a/matrix/matrix_test.go b/matrix/matrix_test.go index cf03d55..753fda0 100644 --- a/matrix/matrix_test.go +++ b/matrix/matrix_test.go @@ -117,7 +117,6 @@ func TestContainer_SendTyping(t *testing.T) { func TestContainer_JoinRoom(t *testing.T) { defer os.RemoveAll("/tmp/gomuks-mxtest-2") cfg := config.NewConfig("/tmp/gomuks-mxtest-2", "/tmp/gomuks-mxtest-2") - cfg.LoadSession("@user:example.com") c := Container{client: mockClient(func(req *http.Request) (*http.Response, error) { if req.Method == http.MethodPost && req.URL.Path == "/_matrix/client/r0/join/!foo:example.com" { return mockResponse(http.StatusOK, `{"room_id": "!foo:example.com"}`), nil @@ -140,8 +139,7 @@ func TestContainer_JoinRoom(t *testing.T) { func TestContainer_Download(t *testing.T) { defer os.RemoveAll("/tmp/gomuks-mxtest-3") cfg := config.NewConfig("/tmp/gomuks-mxtest-3", "/tmp/gomuks-mxtest-3") - cfg.Load() - cfg.LoadSession("@user:example.com") + cfg.LoadAll() callCounter := 0 c := Container{client: mockClient(func(req *http.Request) (*http.Response, error) { if req.Method != http.MethodGet || req.URL.Path != "/_matrix/media/v1/download/example.com/foobar" { -- cgit v1.2.3