# HG changeset patch # User Mikael Berthe # Date 1492283314 -7200 # Node ID 5ee3f23205afeb5168516bc54e90bc63a7d11bb4 # Parent 9b566c020a172344f6411533b5d33080671bfa3b Update gondole-cli tests diff -r 9b566c020a17 -r 5ee3f23205af cmd/gondole-cli/config_test.go --- a/cmd/gondole-cli/config_test.go Sat Apr 15 21:08:34 2017 +0200 +++ b/cmd/gondole-cli/config_test.go Sat Apr 15 21:08:34 2017 +0200 @@ -52,10 +52,11 @@ assert.NoError(t, err, "should be fine") real := &Server{ - ID: "666", + ID: "666abcdef666", Name: "foo", BearerToken: "d3b07384d113edec49eaa6238ad5ff00", - BaseURL: "https://mastodon.social", + APIBase: "https://mastodon.social/api/v1", + InstanceURL: "https://mastodon.social", } file = filepath.Join("test", "foo") s, err := loadInstance(file) @@ -102,4 +103,4 @@ err = os.Chmod(filepath.Join("test", "config.toml"), 0600) assert.NoError(t, err, "should be fine") -} \ No newline at end of file +} diff -r 9b566c020a17 -r 5ee3f23205af cmd/gondole-cli/test/foo.token --- a/cmd/gondole-cli/test/foo.token Sat Apr 15 21:08:34 2017 +0200 +++ b/cmd/gondole-cli/test/foo.token Sat Apr 15 21:08:34 2017 +0200 @@ -1,4 +1,5 @@ -id = "666" +id = "666abcdef666" name = "foo" bearer_token = "d3b07384d113edec49eaa6238ad5ff00" -base_URL = "https://mastodon.social" \ No newline at end of file +api_base = "https://mastodon.social/api/v1" +instance_url = "https://mastodon.social"