Skip to content

Commit 0b8ad58

Browse files
committed
Enable and fix the tests
1 parent 5f81701 commit 0b8ad58

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

models/fixtures/commit_status.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
id: 1
33
index: 1
44
repo_id: 1
5-
state: pending
6-
sha: 1234123412341234123412341234123412341234
5+
state: "pending"
6+
sha: "1234123412341234123412341234123412341234"
77
target_url: https://example.com/builds/
88
description: My awesome CI-service
99
context: ci/awesomeness
@@ -13,8 +13,8 @@
1313
id: 2
1414
index: 2
1515
repo_id: 1
16-
state: warning
17-
sha: 1234123412341234123412341234123412341234
16+
state: "warning"
17+
sha: "1234123412341234123412341234123412341234"
1818
target_url: https://example.com/converage/
1919
description: My awesome Coverage service
2020
context: cov/awesomeness
@@ -24,8 +24,8 @@
2424
id: 3
2525
index: 3
2626
repo_id: 1
27-
state: success
28-
sha: 1234123412341234123412341234123412341234
27+
state: "success"
28+
sha: "1234123412341234123412341234123412341234"
2929
target_url: https://example.com/converage/
3030
description: My awesome Coverage service
3131
context: cov/awesomeness
@@ -35,8 +35,8 @@
3535
id: 4
3636
index: 4
3737
repo_id: 1
38-
state: failed
39-
sha: 1234123412341234123412341234123412341234
38+
state: "failure"
39+
sha: "1234123412341234123412341234123412341234"
4040
target_url: https://example.com/builds/
4141
description: My awesome CI-service
4242
context: ci/awesomeness
@@ -46,8 +46,8 @@
4646
id: 5
4747
index: 5
4848
repo_id: 1
49-
state: error
50-
sha: 1234123412341234123412341234123412341234
49+
state: "error"
50+
sha: "1234123412341234123412341234123412341234"
5151
target_url: https://example.com/builds/
5252
description: My awesome deploy service
5353
context: deploy/awesomeness

models/status_test.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Use of this source code is governed by a MIT-style
33
// license that can be found in the LICENSE file.
44

5-
// +build disabled
6-
75
package models
86

97
import (
@@ -35,7 +33,7 @@ func TestGetCommitStatuses(t *testing.T) {
3533
assert.Equal(t, statuses[3].Context, "ci/awesomeness")
3634
assert.Equal(t, statuses[3].State, CommitStatusFailure)
3735

38-
assert.Equal(t, statuses[4].Context, "ci/awesomeness")
36+
assert.Equal(t, statuses[4].Context, "deploy/awesomeness")
3937
assert.Equal(t, statuses[4].State, CommitStatusError)
4038
}
4139
}

0 commit comments

Comments
 (0)