aboutsummaryrefslogtreecommitdiff
path: root/matrix/matrix_test.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-05-22 16:54:35 +0300
committerTulir Asokan <tulir@maunium.net>2018-05-22 16:54:35 +0300
commit09703c6b9c343feca8ee5db263d25f174171339d (patch)
treec20986e226b6e77aa75fb54fc885105224eeca96 /matrix/matrix_test.go
parent3c23126e7fde2ad97c44d9069794b6002dac2fa3 (diff)
Fix tests
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" {