Merge pull request #2871 from jjmengze/fix-typo

fix some typo
This commit is contained in:
Thomas Boerger 2019-11-14 15:18:11 +01:00 committed by GitHub
commit d5743579ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -140,7 +140,7 @@ func (d *Datadog) Client() *http.Client {
return d.client
}
// calculate the differene between now and midnight.
// calculate the differences between now and midnight.
func midnightDiff() time.Duration {
a := time.Now()
b := time.Date(a.Year(), a.Month(), a.Day()+1, 0, 0, 0, 0, a.Location())

View File

@ -271,7 +271,7 @@ func TestTrigger_SkipBranch(t *testing.T) {
_, err := triggerer.Trigger(noContext, dummyRepo, dummyHook)
if err != nil {
t.Errorf("Expect build silenty skipped if branch does not match")
t.Errorf("Expect build silently skipped if branch does not match")
}
}
@ -309,7 +309,7 @@ func TestTrigger_SkipEvent(t *testing.T) {
_, err := triggerer.Trigger(noContext, dummyRepo, dummyHook)
if err != nil {
t.Errorf("Expect build silenty skipped if event does not match")
t.Errorf("Expect build silently skipped if event does not match")
}
}
@ -347,7 +347,7 @@ func TestTrigger_SkipAction(t *testing.T) {
_, err := triggerer.Trigger(noContext, dummyRepo, dummyHook)
if err != nil {
t.Errorf("Expect build silenty skipped if action does not match")
t.Errorf("Expect build silently skipped if action does not match")
}
}