aboutsummaryrefslogtreecommitdiff
path: root/matrix/matrix_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'matrix/matrix_test.go')
-rw-r--r--matrix/matrix_test.go4
1 files changed, 1 insertions, 3 deletions
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" {