File tree 2 files changed +11
-13
lines changed
2 files changed +11
-13
lines changed Original file line number Diff line number Diff line change 2
2
id : 1
3
3
index : 1
4
4
repo_id : 1
5
- state : pending
6
- sha : 1234123412341234123412341234123412341234
5
+ state : " pending"
6
+ sha : " 1234123412341234123412341234123412341234"
7
7
target_url : https://example.com/builds/
8
8
description : My awesome CI-service
9
9
context : ci/awesomeness
13
13
id : 2
14
14
index : 2
15
15
repo_id : 1
16
- state : warning
17
- sha : 1234123412341234123412341234123412341234
16
+ state : " warning"
17
+ sha : " 1234123412341234123412341234123412341234"
18
18
target_url : https://example.com/converage/
19
19
description : My awesome Coverage service
20
20
context : cov/awesomeness
24
24
id : 3
25
25
index : 3
26
26
repo_id : 1
27
- state : success
28
- sha : 1234123412341234123412341234123412341234
27
+ state : " success"
28
+ sha : " 1234123412341234123412341234123412341234"
29
29
target_url : https://example.com/converage/
30
30
description : My awesome Coverage service
31
31
context : cov/awesomeness
35
35
id : 4
36
36
index : 4
37
37
repo_id : 1
38
- state : failed
39
- sha : 1234123412341234123412341234123412341234
38
+ state : " failure "
39
+ sha : " 1234123412341234123412341234123412341234"
40
40
target_url : https://example.com/builds/
41
41
description : My awesome CI-service
42
42
context : ci/awesomeness
46
46
id : 5
47
47
index : 5
48
48
repo_id : 1
49
- state : error
50
- sha : 1234123412341234123412341234123412341234
49
+ state : " error"
50
+ sha : " 1234123412341234123412341234123412341234"
51
51
target_url : https://example.com/builds/
52
52
description : My awesome deploy service
53
53
context : deploy/awesomeness
Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a MIT-style
3
3
// license that can be found in the LICENSE file.
4
4
5
- // +build disabled
6
-
7
5
package models
8
6
9
7
import (
@@ -35,7 +33,7 @@ func TestGetCommitStatuses(t *testing.T) {
35
33
assert .Equal (t , statuses [3 ].Context , "ci/awesomeness" )
36
34
assert .Equal (t , statuses [3 ].State , CommitStatusFailure )
37
35
38
- assert .Equal (t , statuses [4 ].Context , "ci /awesomeness" )
36
+ assert .Equal (t , statuses [4 ].Context , "deploy /awesomeness" )
39
37
assert .Equal (t , statuses [4 ].State , CommitStatusError )
40
38
}
41
39
}
You can’t perform that action at this time.
0 commit comments