| Index: milo/appengine/buildbot/pubsub_test.go
|
| diff --git a/milo/appengine/buildbot/pubsub_test.go b/milo/appengine/buildbot/pubsub_test.go
|
| index 1d14e8366b8deec56d649427a64b57377356a234..8fd1992a5fcdea6d2a18ea3a7e190d955d2e1d81 100644
|
| --- a/milo/appengine/buildbot/pubsub_test.go
|
| +++ b/milo/appengine/buildbot/pubsub_test.go
|
| @@ -97,6 +97,27 @@ func TestPubSub(t *testing.T) {
|
|
|
| rand.Seed(5)
|
|
|
| + Convey("Remove source changes", func() {
|
| + m := &buildbotMaster{
|
| + Name: "fake",
|
| + Builders: map[string]*buildbotBuilder{
|
| + "fake builder": {
|
| + PendingBuildStates: []*buildbotPending{
|
| + {
|
| + Source: buildbotSourceStamp{
|
| + Changes: []buildbotChange{{Comments: "foo"}},
|
| + },
|
| + },
|
| + },
|
| + },
|
| + },
|
| + }
|
| + So(putDSMasterJSON(c, m, false), ShouldBeNil)
|
| + lm, _, err := getMasterJSON(c, "fake")
|
| + So(err, ShouldBeNil)
|
| + So(lm.Builders["fake builder"].PendingBuildStates[0].Source.Changes[0].Comments, ShouldResemble, "")
|
| + })
|
| +
|
| Convey("Save build entry", func() {
|
| build := &buildbotBuild{
|
| Master: "Fake Master",
|
|
|