Skip to content

Commit 226c58c

Browse files
sparrcstuarthicks
authored andcommitted
Fix unit test and bump circle.yml to 1.8 (#25)
1 parent b20945b commit 226c58c

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.Error(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)