@@ -29,24 +29,24 @@ func TestOut(t *testing.T) {
29
29
mockMarathoner .EXPECT ().CheckDeployment ("foo" ).Times (3 ).Return (false , nil ),
30
30
mockMarathoner .EXPECT ().CheckDeployment ("bing" ).Times (1 ).Return (false , nil ),
31
31
mockMarathoner .EXPECT ().CheckDeployment ("foo" ).Times (3 ).Return (false , nil ),
32
- mockMarathoner .EXPECT ().CheckDeployment ("bing" ).Times (1 ).Return (false , errors .New ("Something bad happened" )),
32
+ mockMarathoner .EXPECT ().CheckDeployment ("bing" ).Times (1 ).Return (false , errors .New ("something bad happened" )),
33
33
mockMarathoner .EXPECT ().CheckDeployment ("baz" ).Times (2 ).Return (true , nil ),
34
- mockMarathoner .EXPECT ().CheckDeployment ("quux" ).Times (1 ).Return (false , errors .New ("Something bad happened" )),
34
+ mockMarathoner .EXPECT ().CheckDeployment ("quux" ).Times (1 ).Return (false , errors .New ("something bad happened" )),
35
35
mockMarathoner .EXPECT ().CheckDeployment ("zork" ).Times (2 ).Return (true , nil ),
36
36
)
37
37
gomock .InOrder (
38
38
mockMarathoner .EXPECT ().DeleteDeployment ("baz" ).Times (1 ).Return (nil ),
39
- mockMarathoner .EXPECT ().DeleteDeployment ("zork" ).Times (1 ).Return (errors .New ("No way! " )),
39
+ mockMarathoner .EXPECT ().DeleteDeployment ("zork" ).Times (1 ).Return (errors .New ("no way" )),
40
40
)
41
41
gomock .InOrder (
42
42
mockMarathoner .EXPECT ().RestartApp (gomock .Any ()).Times (1 ).Return (gomarathon.DeploymentID {DeploymentID : "bing" , Version : "bar" }, nil ),
43
- mockMarathoner .EXPECT ().RestartApp (gomock .Any ()).Times (1 ).Return (gomarathon.DeploymentID {}, errors .New ("No way! " )),
43
+ mockMarathoner .EXPECT ().RestartApp (gomock .Any ()).Times (1 ).Return (gomarathon.DeploymentID {}, errors .New ("no way" )),
44
44
mockMarathoner .EXPECT ().RestartApp (gomock .Any ()).Times (1 ).Return (gomarathon.DeploymentID {DeploymentID : "bing" , Version : "bar" }, nil ),
45
45
)
46
46
gomock .InOrder (
47
47
mockMarathoner .EXPECT ().LatestVersions (gomock .Any (), "" ).Times (1 ).Return ([]string {"bar" }, nil ),
48
48
mockMarathoner .EXPECT ().LatestVersions (gomock .Any (), "" ).Times (2 ).Return ([]string {"baz" }, nil ),
49
- mockMarathoner .EXPECT ().LatestVersions (gomock .Any (), "" ).Times (1 ).Return ([]string {}, errors .New ("No way! " )),
49
+ mockMarathoner .EXPECT ().LatestVersions (gomock .Any (), "" ).Times (1 ).Return ([]string {}, errors .New ("no way" )),
50
50
mockMarathoner .EXPECT ().LatestVersions (gomock .Any (), "" ).Times (1 ).Return ([]string {"baz" }, nil ),
51
51
mockMarathoner .EXPECT ().LatestVersions (gomock .Any (), "" ).Times (1 ).Return ([]string {"baz" }, nil ),
52
52
)
0 commit comments