Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f6ed515

Browse files
committed
Fix unit test and bump circle.yml to 1.8
1 parent b20945b commit f6ed515

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎circle.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ dependencies:
2020
pre:
2121
- sudo apt-get remove --purge golang
2222
- sudo rm -rf /usr/local/go/
23-
- cd ~/download_cache && wget --no-clobber 'https://storage.googleapis.com/golang/go1.5.3.linux-amd64.tar.gz'
24-
- cd ~/download_cache && sudo tar -xzf go1.5.3.linux-amd64.tar.gz -C /usr/local
23+
- cd ~/download_cache && wget --no-clobber 'https://storage.googleapis.com/golang/go1.8.linux-amd64.tar.gz'
24+
- cd ~/download_cache && sudo tar -xzf go1.8.linux-amd64.tar.gz -C /usr/local
2525
- cd ~/download_cache && wget --no-clobber 'https://github.com/Masterminds/glide/releases/download/0.8.3/glide-0.8.3-linux-amd64.tar.gz'
2626
- cd ~/download_cache && tar -xzf glide-0.8.3-linux-amd64.tar.gz
2727
- cd ~/download_cache && sudo cp linux-amd64/glide /usr/local/bin/glide

‎remoteconfig_test.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,8 @@ func (s *RemoteConfigSuite) TestReadJSONValidateEmbeddedStruct() {
616616

617617
c := &SampleConfig{}
618618
err := ReadJSONValidate(cfgBuffer, c)
619-
assert.EqualError(s.T(), err, "Failed to decode JSON, with error, json: cannot unmarshal string into Go value of type int64")
619+
assert.NotNil(s.T(), err)
620+
assert.Contains(s.T(), err.Error(), "Failed to decode JSON")
620621
}
621622

622623
func (s *RemoteConfigSuite) TestReadJSONValidateInvalidJSON() {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /