Browse Source

Fix travis-ci duration parsing

The example from the docs was very clearly with spaces after hours and minutes:
```
  "committed_at": "2011-11-11T11: 11: 11Z",
```
But in fact those spaces do not exist in the wild. Great.
kegan/text-logging
Kegan Dougal 8 years ago
parent
commit
61c3110cfe
  1. 5
      src/github.com/matrix-org/go-neb/services/travisci/travisci_test.go

5
src/github.com/matrix-org/go-neb/services/travisci/travisci_test.go

@ -84,6 +84,11 @@ var travisTests = []struct {
"%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}", "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}",
"Kegsay/flow-jsdoc#18 (master - 3a092c3a6032ebb50384c99b445f947e9ce86e2a : Kegan Dougal): Passed", "Kegsay/flow-jsdoc#18 (master - 3a092c3a6032ebb50384c99b445f947e9ce86e2a : Kegan Dougal): Passed",
}, },
{
exampleSignature, true, exampleBody,
"%{repository}#%{build_number} %{duration}",
"Kegsay/flow-jsdoc#18 32s",
},
} }
type MockTransport struct { type MockTransport struct {

Loading…
Cancel
Save